Postado Maio 18, 2015 10 anos starter.lua <<alterer por esse esta configurador para seu local starterpokes = { ["Bulbasaur"] = {x = 47, y = 44, z = 7}, ["Squirtle"] = {x = 49, y = 44, z = 7}, ["Charmander"] = {x = 51, y = 44, z = 7}, } local btype = "normal" function onUse(cid, item, frompos, item2, topos) if getPlayerLevel(cid) > 5 then --alterado v1.3 return true end local pokemon = "" for a, b in pairs (starterpokes) do if isPosEqualPos(topos, b) then pokemon = a end end if pokemon == "" then return true end local gender = getRandomGenderByName(pokemon) local happy = 180 doPlayerAddItem(cid, 2392, 10) doPlayerAddItem(cid, 2152, 5) doPlayerAddItem(cid, 12222, 25) doPlayerAddItem(cid, 12347, 10) doPlayerAddItem(cid, 12344, 3) local item = doCreateItemEx(2219) doItemSetAttribute(item, "poke", pokemon) doItemSetAttribute(item, "hp", 1) doItemSetAttribute(item, "happy", happy) doItemSetAttribute(item, "gender", gender) doItemSetAttribute(item, "description", "Contains a "..pokemon..".") doItemSetAttribute(item, "fakedesc", "Contains a "..pokemon..".") doItemSetAttribute(item, "firstpoke", getCreatureName(cid)) doPlayerAddItemEx(cid, item, true) doTransformItem(item, pokeballs[btype].on) doPlayerSendTextMessage(cid, 27, "You got your first pokemon! You also received some pokeballs to help you in your way.") doPlayerSendTextMessage(cid, 27, "Don\'t forget to use your pokedex on every undiscovered pokemon!") doSendMagicEffect(getThingPos(cid), 29) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doSendMagicEffect(getThingPos(cid), 27) doSendMagicEffect(getThingPos(cid), 29) return TRUE end tag para actions.lua <action itemid="STORAGE" event="script" value="starter.lua"/> Editado Maio 18, 2015 10 anos por 345sat (veja o histórico de edições)
Postado Maio 18, 2015 10 anos Autor ''tag para actions.lua <action itemid="STORAGE" event="script" value="starter.lua"/>'' eu coloco isso tambem junto la no starter.lua?
Postado Maio 18, 2015 10 anos Autor blz mandei mensagem imbox da uma olhadinha ai se puder coloco isso em qualquer linha do action.xml?
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.