- May 2, 2014
- 34
- 2
- 34
Hello, I am trying to create a special potion so that when you use it, it makes you randomteleport, the problem is if I have 10 in the bag you make 10 times the jump and I just want you to make one.Thanks for the help
[@EventItem_SpecialTeleport]
{
#ACT
SetItemEvent 3 61 @SpecialTeleport
[@SpecialTeleport_Main]
#if
checkitem SpecialTeleport 1
#ACT
take SpecialTeleport 1
break
Mov A1 %USERMAP
Mov A2 %USERx
Mov A3 %USERY
mapmove "%A1,%A2,%A3,100" %username
}
[@EventItem_SpecialTeleport]
{
#ACT
SetItemEvent 3 61 @SpecialTeleport
[@SpecialTeleport_Main]
#if
checkitem SpecialTeleport 1
#ACT
take SpecialTeleport 1
break
Mov A1 %USERMAP
Mov A2 %USERx
Mov A3 %USERY
mapmove "%A1,%A2,%A3,100" %username
}