
WizKhalifa
Membro
-
Registro em
-
Última visita
Histórico de Curtidas
-
WizKhalifa deu reputação a Markin em [Resolvido] Script@Não testei
Tenta isso:
local level = 700 local storage = 54878 local voc = 12 local pos = {x=914, y=1078, z=7} function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, storage) == 1 then if getPlayerVocation(cid) ~= voc then if getPlayerLevel(cid) >= level then doTeleportThing(cid,pos) doSendMagicEffect(getPlayerPosition(cid),37) else doPlayerSendCancel(cid,"You don't have level 700.") end else doPlayerSendCancel(cid,"Voce não tem vocação.") doSendMagicEffect(getPlayerPosition(cid),CONST_ME_POFF) end else doPlayerSendCancel(cid, "Você não fez a missão do NPC Baduk.") end return TRUE end Ai você pega e bota essa tag:
<action actionid="17437" event="script" value="NOME DO SEU ARQUIVO.lua"/> Ai basta você alterar ali o nome do arquivo e colocar a actionID 17437 na pedra...