hyz
Member
- Joined
- Oct 30, 2008
- Messages
- 39
- Reaction score
- 16
I need a script that when using XXX1 on another item XXX2 it will change into another item XXX3 for 30 minutes, and then it will change into XXX2 and the player will be able to use it again.
I took the fishing rod script to try to edit it and I managed to do it, I reduced it until I got to that point but it gave a bug.
I can make him send me the item and remove the used item, but I am not able to do the time action
-
I took the fishing rod script to try to edit it and I managed to do it, I reduced it until I got to that point but it gave a bug.
I can make him send me the item and remove the used item, but I am not able to do the time action
-
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if targetId == 2722 then
player:addItem(2667, 1)
target:transform(2720)
target:decay()
player:addItem(13139, 25)
toPosition:sendMagicEffect(32)
player:addSkillTries(SKILL_FISHING, 1)
end
return true
end