Ir para conteúdo

Featured Replies

Postado
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemEx.itemid ~= 13877 then
return false
end
addEvent(doPlayerSendTextMessage, 5 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'The ring feels quite heavy now. Nothing else happens.')
addEvent(doPlayerSendTextMessage, 15 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'The ring feels even heavier. You feel slightly stronger, however.')
addEvent(doSendMagicEffect, 15 * 1000, cid, toPosition, CONST_ME_MAGIC_GREEN)
addEvent(doPlayerSendTextMessage, 25 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'You feel better, more energetic than ever before. The ring seems to wrap itself tighter around your finger.')
local player = Player(cid)
Item(item.uid):remove(1)
Item(itemEx.uid):transform(22543)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'The smooth string of mending coils around your whole arm as if it was to devour it.')
player:getPosition():sendMagicEffect(getCreaturePosition(cid),39)
return true
end

Tenta assim, se não der desisto. Ou:

function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemEx.itemid ~= 13877 then
return false
end
addEvent(doPlayerSendTextMessage, 5 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'The ring feels quite heavy now. Nothing else happens.')
addEvent(doPlayerSendTextMessage, 15 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'The ring feels even heavier. You feel slightly stronger, however.')
addEvent(doSendMagicEffect, 15 * 1000, cid, toPosition, CONST_ME_MAGIC_GREEN)
addEvent(doPlayerSendTextMessage, 25 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'You feel better, more energetic than ever before. The ring seems to wrap itself tighter around your finger.')
local player = Player(cid)
Item(item.uid):remove(1)
Item(itemEx.uid):transform(22543)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'The smooth string of mending coils around your whole arm as if it was to devour it.')
player:getPosition():sendMagicEffect(toPosition,39)
return true
end

Editado por Ka zuza (veja o histórico de edições)

  • Respostas 23
  • Visualizações 802
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Acho que faltou 'cid'.   addEvent(doPlayerSendTextMessage, 3 * 1000,cid, MESSAGE_EVENT_ADVANCE, 'The ring feels quite heavy now. Nothing else happens.')

  • Qual versão do seu servidor? teste com cid como cara de cima falou, se não funciona avisa que talvez sei qual é o problema, mais primeiro faz como ele disse adicionar o cid 

  • tentou com cid tambem?

Postado
  • Autor

cara, qual vc ta tentando colocar?

esse aqui que não vai..

addEvent(doSendMagicEffect, 13 * 1000, cid, toPosition, CONST_ME_MAGIC_GREEN)

 

 

o resto ta indo de boas...

mas em

e se eu colocar

local position = getCreaturePosition(cid)

 

e colocar na tag

addEvent(doSendMagicEffect, 13 * 1000, cid, position, CONST_ME_MAGIC_GREEN)

Postado
  • Solução

simplesmente isto :

addEvent(doSendMagicEffect, 13 * 1000, getThingPos(cid), CONST_ME_MAGIC_GREEN)

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo