@gristony
Se for reportar algo, tente reportar em português...
Mas pelo que eu entendi, foi erro meu... troque o goback.lua (creaturescripts) por esse:
function onLogout(cid)
if not isCreature(cid) then return true endthisitem = getPlayerSlotItem(cid, 8)if thisitem.uid <= 0 then return true endif not pokeballs[getItemAttribute(thisitem.uid, "btype")] then return true endpokename = getItemAttribute(thisitem.uid, "poke")btype = getItemAttribute(thisitem.uid, "btype")balls = pokeballs[btype]if #getCreatureSummons(cid) >= 1 and thisitem.uid > 1 thendoReturnPokemon(cid, getCreatureSummons(cid)[1], thisitem, balls.Effect)endreturn trueenddeathtexts = {"Oh no! POKENAME, come back!", "Come back, POKENAME!", "That's enough, POKENAME!", "You did well, POKENAME!", "You need to rest, POKENAME!", "Nice job, POKENAME!", "POKENAME, you are too hurt!"}function onDeath(cid, deathList)local owner = getCreatureMaster(cid)local thisball = getPlayerSlotItem(owner, 8)local ballName = getItemAttribute(thisball.uid, "poke")btype = getItemAttribute(thisball.uid, "btype")balls = pokeballs[btype]doSendMagicEffect(getThingPos(cid), balls.Effect)doTransformItem(thisball.uid, balls.all[3])local say = deathtexts[math.random(#deathtexts)]doCreatureSay(owner, string.gsub(say, "POKENAME", getCreatureName(cid)), TALKTYPE_SAY)doItemSetAttribute(thisball.uid, "aid", 0)doRemoveCreature(cid)return falseend@lazarocpQual era o problema?AAAAAAH, era isso, por isso senti que estava esquecendo algo!Script heal.lua da Nurse:function onThingMove(creature, thing, oldpos, oldstackpos)endfunction onCreatureAppear(creature)endfunction onCreatureDisappear(cid, pos)if focus == cid thenselfSay('Good bye sir!')focus = 0talk_start = 0endendfunction onCreatureTurn(creature)endfunction msgcontains(txt, str)return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))endfunction onCreatureSay(cid, type, msg)local msg = string.lower(msg)local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cidfor a, b in pairs(gobackmsgs) dolocal gm = string.gsub(b.go, "doka!", "")local bm = string.gsub(b.back, "doka!", "")if string.find(string.lower(msg), string.lower(gm)) or string.find(string.lower(msg), string.lower(bm)) thenreturn trueendendif((msgcontains(msg, 'hi') or msgcontains(msg, 'heal') or msgcontains(msg, 'help')) and (getDistanceToCreature(cid) <= 3)) thenif exhaustion.get(cid, 9211) thenselfSay('Please wait a few moment before asking me to heal your pokemons again!')return trueendif not getTileInfo(getThingPos(cid)).protection and nurseHealsOnlyInPZ thenselfSay("Please, get inside the pokémon center to heal your pokemons!")return trueendexhaustion.set(cid, 9211, 5)doCreatureAddHealth(cid, getCreatureMaxHealth(cid)-getCreatureHealth(cid))doSendMagicEffect(getThingPos(cid), 132)local mypb = getPlayerSlotItem(cid, 8)if #getCreatureSummons(cid) >= 1 thenlocal s = getCreatureSummons(cid)[1]doCreatureAddHealth(s, getCreatureMaxHealth(s))doSendMagicEffect(getThingPos(s), 13)elseif mypb.itemid >= 1 thendoItemSetAttribute(mypb.uid, "aid", 1)if getPlayerStorageValue(cid, 17000) <= 0 and getPlayerStorageValue(cid, 17001) <= 0 and getPlayerStorageValue(cid, 63215) <= 0 thenfor a, b in pairs (pokeballs) doif isInArray(b.all, mypb.itemid) thendoTransformItem(mypb.uid, b.all[1])endendendendendlocal bp = getPlayerSlotItem(cid, CONST_SLOT_BACKPACK)for cureballs = 1, #pokeballs dofor times = 1, 3 dolocal items = getItemsInContainerById(bp.uid, pokeballs[cureballs].all[times])if #items >= 1 thenfor _, uid in pairs(items) dodoItemSetAttribute(uid, "aid", 1)doTransformItem(uid, pokeballs[cureballs].all[1])endendendendselfSay('There you go! You and your pokemons are healthy again.')endendUma coisa que percebi (pelo menos aqui), não da pra soltar "summon" no Centro Pokemon, acredito que seja nas sourcesE se for editar isso, aproveita e coloca pra não entrar em PZ com FightEdit:Fui atacar meu pokémon pra dar dano nele, mas deu erro no "playerattack.lua (creaturescripts)" então alterei o script, só coloquei 2 coisas, não pode atacar player nem summonfunction onTarget(cid, target)if isPlayer(target) or isSummon(target)then return false endreturn trueendBonus: Fui deixar o Bulbasaur com pouca vida pra ter certeza que a Nurse tava funcionando normalmente deixei ele bater e matei ele, e apareceu isso... Hue Hue
zeref tava dando erro ai fui ver era por causa disso doReturnPokemon(cid, getCreatureSummons(cid)[1], thisitem, balls.Effect)
ta faltando o .uid doReturnPokemon(cid, getCreatureSummons(cid)[1], thisitem.uid, balls.Effect)









info
Grupo: Conde
Registrado: 18/10/12
Posts: 757
Reputação: +111
Como ele já falou, ele retirou porque é uma criação dele para o OT dele.
Certo ele, se esforçou pra fazer e dar tudo de graça? Quem quiser feito que vá la e faça por si próprio! kkkkkkk'