Postado Abril 24, 2015 10 anos Ola galera do TK Preciso de uma ajudinha em um script de talkaction que fiz! e um script de um item que add skill no personagem, so que os player podem usar quanto quiserem. quero colocar para este script subir a skill so ate certo nivel. Versao do ot 7.92 function onSay(cid, words, param) pos = getPlayerPosition(cid) pz = getTilePzInfo(pos) if pz == 0 then doPlayerSendTextMessage(cid,22,"Voce so pode upar seu skill en protect zone.") else if doPlayerRemoveItem(cid, 5891,1) == TRUE then doPlayerAddSkill(cid,3, 1) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_ENERGYAREA) else doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,"Você precisa de 1 enchanted chicken wing para upar seu skill.") end end return 1 end
Postado Maio 17, 2015 10 anos Não cheguei a testar function onSay(cid, words, param) pos = getPlayerPosition(cid) pz = getTilePzInfo(pos) if pz == 0 then doPlayerSendTextMessage(cid,22,"Voce so pode upar seu skill en protect zone.") else getPlayerLevel(cid) <= 200 then --- menor ou igual a 200 elseif doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,"Você não tem level necessario.") then elseif doPlayerRemoveItem(cid, 5891,1) == then doPlayerAddSkill(cid,3, 1) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_ENERGYAREA) else doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,"Você precisa de 1 enchanted chicken wing para upar seu skill.") end end end return true end I helped you ? REP +. Att: Abreu
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.