Postado Abril 27, 2018 7 anos @Zazeros Usei o script do Way local magia = "test" local voc = XX function onUse(cid, item) if getPlayerVocation(cid) == voc then if getPlayerLearnedInstantSpell(cid, magia) then doPlayerSendTextMessage(cid,25,"You already learned everything from this scroll.") elseif doPlayerLearnInstantSpell(cid, magia) then local position = getCreaturePosition(cid) doSendMagicEffect(position, 13) doRemoveItem(item.uid) doPlayerSendTextMessage(cid,19,"By reading this ancient scroll you learned the secrets of "..magia..".") end else doPlayerSendCancel(cid, "apenas a vocacao XX pode usar esse item.") end end
Postado Outubro 31, 2018 6 anos @gabriel28 e se eu quiser dar mais de uma spell? tipo umas 6. tem como ajudar?
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.