Postado Setembro 15, 2014 10 anos 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 Setembro 15, 2014 10 anos por Ka zuza (veja o histórico de edições)
Postado Setembro 15, 2014 10 anos Autor Já tentei assim com toPosition, mas mesmo assim obrigado vou tentar achar algum outro script que tenha essa função funcional, ai resolve meu problema mas valeuuuu mesmo
Postado Setembro 15, 2014 10 anos 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 Setembro 15, 2014 10 anos 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.