Postado Abril 20, 2015 10 anos [Error - TalkAction Interface] data/talkactions/scripts/Skills/DistanceFull.lua:onSay Description: data/talkactions/scripts/Skills/DistanceFull.lua:8: attempt to call global 'doPlayerSetSkill' (a nil value) stack traceback: data/talkactions/scripts/Skills/DistanceFull.lua:8: in function <data/talkactions/scripts/Skills/DistanceFull.lua:1> Mostrar conteúdo oculto function onSay(cid, words, param) if (getTilePzInfo(getCreaturePosition(cid)) == FALSE) then doPlayerSendTextMessage(cid,22,"você precisa estar em protection zone pra poder usar este comando.") return TRUE end if doPlayerRemoveItem(cid,2160,1000) and getPlayerVocation(cid) == 7 then doPlayerSetSkill(cid, 4, 400) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA) doCreatureSay(cid, "DISTANCE FULL PALADIN!", TALKTYPE_ORANGE_1) addEvent(doRemoveCreature, 3*1000, cid, true) else doPlayerSendCancel(cid, 'voce precisa de 10kk para usar este comando e ser paladin.') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA) end end
Postado Abril 20, 2015 10 anos function onSay(cid, words, param) if getTilePzInfo(getCreaturePosition(cid)) == false then doPlayerSendTextMessage(cid,22,"Você precisa estar em protection zone pra poder usar este comando.") return true end if doPlayerRemoveItem(cid,2160,1000) and getPlayerVocation(cid) == 7 then for i = 1,100 do doPlayerAddSkillTry(cid, 4, getPlayerRequiredSkillTries(cid, 4, getPlayerSkillLevel(cid, 4) + 1) - getPlayerSkillTries(cid, 4), false) end doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA) doCreatureSay(cid, "DISTANCE FULL PALADIN!", TALKTYPE_ORANGE_1) addEvent(doRemoveCreature, 3*1000, cid, true) else doPlayerSendCancel(cid, 'Você precisa de 10kk para usar este comando e ser paladin.') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA) end return true end Editado Abril 20, 2015 10 anos por Snowsz (veja o histórico de edições)
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.