Ir para conteúdo

Featured Replies

Postado
  • Autor

sim, veja como está

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(39)
return true
end

 

 

LEMBRANDO QUE É TFS 1.0 

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

Se Ajudei Rep+ pra mim ^^

tumblr_lyd1xtGgx81qf9l6uo1_500.gif

  • Respostas 23
  • Visualizações 887
  • 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

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(cid,39)
return true
end

z_WL63_Tt.png

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, getCreaturePosition(cid), 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(cid,39)
return true
end

é para funcionar.

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

z_WL63_Tt.png

Postado
  • Autor

ele ainda faz tudo as mesmas coisas mas não sai o magic effect com addevent

e o magic effect antigo que era o smallclouds agora ta em yellow rings

nao sei pq

 

usando esse volta ao normal o magic effect quando usa o item no outro...

function onUse(cid, item, fromPosition, itemEx, toPosition)


if itemEx.itemid ~= 13877 then
return false
end
addEvent(doPlayerSendTextMessage, 3 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'The ring feels quite heavy now. Nothing else happens.')
addEvent(doPlayerSendTextMessage, 13 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'The ring feels even heavier. You feel slightly stronger, however.')
addEvent(doSendMagicEffect, 13 * 1000, cid, toPosition, CONST_ME_MAGIC_GREEN)
addEvent(doPlayerSendTextMessage, 23 * 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(39)
return true
end

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

Se Ajudei Rep+ pra mim ^^

tumblr_lyd1xtGgx81qf9l6uo1_500.gif

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