alguem pode trocar as storages desses npcs para mim?
http://www.2shared.c...GoVEZ/npcs.html
rep+
Estou fazendo Chansey Quest...
e coloque a storage para poder ganha o premio
Script:
local starterpokes = {
["Chansey"] = {x = 1147, y = 781, z = 11},
}
local level = 1
local extrastr = 5
local btype = "normal"
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid, 344487) == 2 then
return doPlayerSendCancel(cid, "You have picked your prize!")
end
if getPlayerStorageValue(cid, 344487) ~= 1 then
return doPlayerSendCancel(cid, "You need own all fight trainer to choose your prize!")
end
local pokemon = ""
if getPlayerMana(cid) >= 6 then
return doPlayerSendCancel(cid, "You don't have capacity for your prize!")
end
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 mypoke = getPokemonStatus(pokemon)
if not mypoke then return true end
local offense = mypoke.off * level * extrastr
local defense = mypoke.def * level * extrastr
local speed = mypoke.agi * level * extrastr
local vit = mypoke.vit * level * extrastr
local spatk = mypoke.spatk * level * extrastr
local happy = 180
local leveltable = getPokemonExperienceTable(pokemon)
local item = doCreateItemEx(2219)
doItemSetAttribute(item, "poke", pokemon)
doItemSetAttribute(item, "hp", 1)
doItemSetAttribute(item, "level", level)
doItemSetAttribute(item, "exp", leveltable[level])
doItemSetAttribute(item, "nextlevelexp", leveltable[level+1] - leveltable[level])
doItemSetAttribute(item, "offense", offense)
doItemSetAttribute(item, "defense", defense)
doItemSetAttribute(item, "speed", speed)
doItemSetAttribute(item, "vitality", vit)
doItemSetAttribute(item, "specialattack", spatk)
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))
doItemSetAttribute(item, "hands", 0)
doPlayerAddItemEx(cid, item, true)
doTransformItem(item, pokeballs[btype].on)
doPlayerSendTextMessage(cid, 27, "You choose a "..pokemon..".")
setPlayerStorageValue(cid, 344487, 2)
doSendMagicEffect(getThingPos(cid), 29)
doSendMagicEffect(getThingPos(cid), 27)
doSendMagicEffect(getThingPos(cid), 29)
return TRUE
end









info
Grupo: Campones
Registrado: 19/02/11
Posts: 45
Reputação: +9
Char no Tibia: Darius Hunter
alguem poderia por favor postar para mim os pokemons com loot editados os que encontrei estao uplados no megaupload =(