Gente,gostaria de uma ajuda com Shop Diamond,a parte da vip e dos addons ja estão configuradas (addons só mudar os ids). Gostaria da ajuda para conseguir colocar o sistema de clan (quando coloco não funciona e da erros na distro) e a do Ditto (que já desconta os Diamonds e aparece a mensagem,só falta agora ele ir para a bag.
Estou usando a basa PokexCyan,abaixo vou deixar o script...Obrigado!
gymbadges = {
["Brock"] = 12505,
["Misty"] = 12506,
["Surge"] = 12507,
["Erika"] = 12508,
["Sabrina"] = 12509,
["Koga"] = 12510,
["Blaine"] = 12511,
["Kira"] = 12512
} --alterado v1.5
local diamondShop = {
vip = {[30] = 10, [60] = 18, [90] = 25},
pokeAddons = {
["Arcanine"] = 13012,
["Blastoise"] = 13016,
["Charizard"] = 13005,
["Electabuzz"] = 13007,
["Girafarig"] = 13004,
["Shiny Hypno"] = 13008,
["Shiny Jolteon"] = 13009,
["Kingdra"] = 13013,
["Lapras"] = 13015,
["Shiny Nidoking"] = 13011,
["Scizor"] = 13014,
["Shiny Golem"] = 13010,
["Skarmory"] = 13017,
["Slowking"] = 13003,
["Sudowoodo"] = 13006,
["Shiny Vaporeon"] = 13009}
}
function onSay(cid, words, param)
if param:find("86228") then
doPlayerSendCancel(cid, "#getSto# " .. getPlayerStorageValue(cid, 86228)) -- Checa o clan do player
elseif gymbadges[param] then
doPlayerSendCancel(cid, "#getBadges# "..param.." "..getPlayerItemCount(cid, gymbadges[param])) -- Checa as badges
end
if words == "@buy" or words == "@tvCam" then
local t = string.explode(param, ",")
if param:find("VIP30") or param:find("VIP60") or param:find("VIP90") then
id = param:find("VIP30") and 30 or param:find("VIP60") and 60 or param:find("VIP90") and 90
if doPlayerRemoveItem(cid, 2145, diamondShop.vip[id]) then
doPlayerAddPremiumDays(cid, id)
doPlayerSendCancel(cid, "@shop Done")
else
doPlayerSendCancel(cid, "@shop Can'tDone")
end
elseif param:find("Ditto") or param:find("Shiny Ditto") then
id = param == "Ditto" and 15 or param:find("Shiny Ditto") and 350
if doPlayerRemoveItem(cid, 2145, id) then
addPokeToPlayer(cid, pokemon, 0, nil, btype)
doPlayerSendCancel(cid, "@shop Done")
else
doPlayerSendCancel(cid, "@shop Can'tDone")
end
elseif diamondShop.pokeAddons[param] then
if doPlayerRemoveItem(cid, 2145, param == "Blastoise" and 7 or param == "Lapras" and 7 or 10) then
doPlayerAddItem(cid, diamondShop.pokeAddons[param], 1)
doPlayerSendCancel(cid, "@shop Done")
else
doPlayerSendCancel(cid, "@shop Can'tDone")
end
elseif t[1] == "onAir" then
doSendAnimatedText(getThingPos(cid), "CAM ON", COLOR_ICE)
doPlayerSendTextMessage(cid, 27, "Your channel is named: "..t[2].."\n Your channel is descripted: "..t[3])
local channelId = 20000
for i = 20000, 20100 do
if getGlobalStorageValue(i) == "" then
channelId = i
break
end
end
setTvChannelInfo(channelId, cid, t[2], t[3])
doPlayerSendCancel(cid, "@tvCamOnAir")
setPlayerStorageValue(cid, storages.tvCamSys, channelId)
setPlayerStorageValue(cid, 99284, 1)
moveAllSpectators(cid)
elseif t[1] == "Close" then
doSendAnimatedText(getThingPos(cid), "CAM OFF", COLOR_FIRE2)
setGlobalStorageValue(getPlayerStorageValue(cid, storages.tvCamSys), "")
doPlayerSendTextMessage(cid, 27, "Your channel is offline.")
doRemoveAllSpectators(cid)
local stors = {99284, 99285, storages.tvCamSys}
for i = 1, #stors do
setPlayerStorageValue(cid, stors, 0)
end
elseif t[1] == "Follow" then
setPlayerStorageValue(cid, storages.tvCamSys, t[2])
--doPlayerSendTextMessage(cid, 27, t[2])
elseif t[1] == "Assistir" then
local storTv = getPlayerStorageValue(cid, storages.tvCamSys)
if (tonumber(storTv)) and storTv <= 0 then
return true
end
doPlayerWatchOther(cid, getPlayerByName(getPlayerStorageValue(cid, storages.tvCamSys)))
doPlayerSendCancel(cid, "@tvCamAssistirThen")
elseif t[1] == "StopWatch" then
doPlayerStopWatching(cid)
end
return true
end
if words == "@autoLoot" then
if param == "ON" then
setPlayerStorageValue(cid, storages.autoLoot, 1)
else
setPlayerStorageValue(cid, storages.autoLoot, 0)
end
end
for i, l in pairs(pokes) do
if i == param then
doPlayerSendCancel(cid, getPokedex(cid, i)) -- Checa os pokemons
--doPlayerSendTextMessage(cid, 27, getPokedex(i))
end
end
return true
end