Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gSto = 123123 -- Global Storage que Salva Guild Dominante do Castelo
- function onSay(cid, words, param)
- if getGlobalStorageValue(gSto) ~= getPlayerGuildId(cid) then
- doPlayerSendCancel(cid,"Você não possui o Castelo.")
- return TRUE
- end
- if (doPlayerRemoveItem(cid,2160,1)) then
- doPlayerAddItem(cid,2173,1) -- coloque id do shield aqui
- doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA)
- doCreatureSay(cid, "Agora estou salvo.", TALKTYPE_ORANGE_1)
- else
- doPlayerSendCancel(cid, 'You do not have 10000 gold coins.')
- doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA)
- end
- return TRUE
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement