ATT3
Intermediate OT User
- Joined
- Sep 22, 2010
- Messages
- 512
- Reaction score
- 100
Well, I haven't even got started with this first one, but I am not sure how it would work therefor I am asking help here
http://tibia.wikia.com/wiki/Ring_of_Ending
I am sure that explains enough about that ring.
From wikia:
Can be created by using a String of Mending on an equipped Broken Ring of Ending. There is a chance of dying in the process. This chance is exactly the same as the chance of success, so they're both 50%.
So basically when you wear this ring text starts showing up /video above.
In the end there's 50% chance of dying or creating the ring.
_______
Will update soon with my first try about this script./I already know that there are functions that I can't get working as it is supposed to be like.
Current status; create ring = done
Explanation.
22542= broken ring
13877= string of meding
22543= "unstable ring"
22542 + 13877 = 22543
When a player wears this unstable ring he should receive several msgs and magic effects.
after all the msgs have occurred the player should either die and lose his unstable ring OR
the unstable ring should transform into Ring of Ending
Here I need help to get started
Secondly. Fixed
Player uses (glimmering) tree.
The tree gives him item (math random)
the glimmering tree changes to normal tree for X time, then changes back to glimmering tree.
I have figured this out by giving player storageid, os.time, but it shouldn't be like that because there are many trees like this.
And I don't want to add new action/unique id for each tree.
So I have tried different settings, but the tree wont change back to glimmering tree, whats wrong with this 1?
// Fix = post below or Zbizus post.
http://tibia.wikia.com/wiki/Ring_of_Ending
I am sure that explains enough about that ring.
From wikia:
Can be created by using a String of Mending on an equipped Broken Ring of Ending. There is a chance of dying in the process. This chance is exactly the same as the chance of success, so they're both 50%.
So basically when you wear this ring text starts showing up /video above.
In the end there's 50% chance of dying or creating the ring.
_______
Will update soon with my first try about this script./I already know that there are functions that I can't get working as it is supposed to be like.
Current status; create ring = done
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 22542 and itemEx.itemid == 13877 and (getPlayerSlotItem(cid, CONST_SLOT_RING).itemid == 13877) then
doTransformItem(item.uid, 22543)
doPlayerRemoveItem(cid, 13877, 1)
end
return true
end
22542= broken ring
13877= string of meding
22543= "unstable ring"
22542 + 13877 = 22543
When a player wears this unstable ring he should receive several msgs and magic effects.
after all the msgs have occurred the player should either die and lose his unstable ring OR
the unstable ring should transform into Ring of Ending
Here I need help to get started
Secondly. Fixed
Player uses (glimmering) tree.
The tree gives him item (math random)
the glimmering tree changes to normal tree for X time, then changes back to glimmering tree.
I have figured this out by giving player storageid, os.time, but it shouldn't be like that because there are many trees like this.
And I don't want to add new action/unique id for each tree.
So I have tried different settings, but the tree wont change back to glimmering tree, whats wrong with this 1?
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(item.itemid == 22435) then
doTransformItem(item.uid, 22026)
addEvent(doTransformItem, 5 * 60 * 1000, item.uid, 22435)
end
return true
end
Last edited: