aki esta 1 exemplo e rattata...vai comçar com 10 hundread dollar
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid, 15215) <= 0 then
doPlayerAddItem(cid, 2160, 10)---aki muda a quantia de dinheiro
doPlayerSendTextMessage(cid, 20,"Bem vindo ao Pokemon Server!")
setPlayerStorageValue(cid, 15215, 1)
local rat = {x=1031,y=1010,z=5}
local cat = {x=1029,y=1010,z=5}
local wee = {x=1027,y=1010,z=5}
local pox = getTownTemplePosition(1)
local health = 325
local maxhealth = 325
local description = "Contains a Rattata."
local poke1 = "This is Rattata's pokeball. HP = ["..health.."/"..maxhealth.."]"
item = doCreateItemEx(2219)
doItemSetAttribute(item, "poke", poke1)
doItemSetAttribute(item, "nome", "Rattata")
doItemSetAttribute(item, "apelido", "Rattata")
doItemSetAttribute(item, "description", description)
doPlayerAddItemEx(cid, item, true)
doTransformItem(item, 2222)
doPlayerSendTextMessage(cid, 27, "You got your first pokemon! Here is some experience to help you on your way.")
doPlayerSendTextMessage(cid, 27, "Don\'t forget to use your pokedex on every undiscovered pokemon!")
doPlayerAddExp(cid, 800)
doTeleportThing(cid, pox)
doPlayerAddItem(cid, 2152, 30)
doSendMagicEffect(pox, 21)
doPlayerAddSoul(cid, 1)
setPlayerStorageValue(cid, 54842, "Rattata, ")
return TRUE
else
doPlayerSendTextMessage(cid, 20, "Você já pegou seu pokemon")
end
end
creio que fly ,ride e surf seja em order qual systema de order vc usa??
os outros vejo aos poucos