- 0
!nightmare
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.
-
Conteúdo Similar
-
script alguém pode me ajudar nessa spells aqui, queira que colocassem pro meu personagem ficar inatingível por 6 segundos e podendo atacar livremente
Por lazaroszz,
- 0 respostas
- 1067 visualizações
-
- 3 respostas
- 4370 visualizações
-
- 2 respostas
- 1975 visualizações
-
- 1 resposta
- 1666 visualizações
-
- 1 resposta
- 1805 visualizações
-

Pergunta
dustot 24
Em talkaction.xml está assim:
Em love.lua está assim:
function onSay(cid, words, param) -- Exhausted Settings -- local exhausted_seconds = 1 -- How many seconds player will be exhausted -- local exhausted_storagevalue = 9847 -- Storage Value to store exhaust. It MUST be unused! -- -- Exhausted Settings END -- local text = {'I love you!','My love!','Baby dear!'} local chance1 = math.random(1,table.getn(text)) local chance2 = math.random(1,table.getn(text)) local sid = getPlayerPartner(cid) if sid > 0 then if isOnline(sid) == TRUE then local sname = getPlayerNameByGUID(sid) local pid = getPlayerByNameWildcard(sname) local tmf = getCreaturePosition(cid) local tms = getCreaturePosition(pid) if getDistanceBetween(tmf, tms) <= 3 then if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds) doCreatureSay(cid, text[chance1], TALKTYPE_ORANGE_1) doCreatureSay(pid, text[chance2], TALKTYPE_ORANGE_1) doSendMagicEffect(tmf, 35) doSendMagicEffect(tms, 35) else doPlayerSendCancel(cid, "You are exhausted.") return TRUE end end end end endSei que esse script é o errado! Preciso do certo. Obrigado
Link para o comentário
https://xtibia.com/forum/topic/154096-nightmare/Compartilhar em outros sites
2 respostass a esta questão
Posts Recomendados