• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Request: Boots of Waterwalking Rep+++

Printer

if Printer then print("LUA") end
Senator
Premium User
Joined
Dec 27, 2009
Messages
5,780
Solutions
31
Reaction score
2,299
Location
Sweden?
Boots of Waterwalking

You can walk over the water and border!

When you walk over the border example 4646 and on the water 4620 then it come a effect behind you maybe fire! and you need premium to walk on the water!

Rep+++
 
Rename the next items IDs 2640 at data\items\items.xml

XML:
	<item id="2640" name="water boots">
	<attribute key="description" value="Using this magic boots, you will can jump on water for a short period of time."/>
	<attribute key="weight" value="800"/>
	<attribute key="slotType" value="feet"/>
	<attribute key="transformDeEquipTo" value="6132"/>

XML:
<item id="6132" name="water boots">
<attribute key="description" value="Using this magic boots, you will can jump on water for a short period of time."/>		
<attribute key="weight" value="800"/>
<attribute key="slotType" value="feet"/>
<attribute key="transformEquipTo" value="2640"

data/actions/scripts/water boots.lua

LUA:
function onUse(cid, item, frompos, item2, topos)
 
tempo = 10
 
tempo2 = tempo + 60
pos = getPlayerPosition(cid)
tilepos = {x=pos.x, y=pos.y, z=pos.z, stackpos=0}
tile = getThingfromPos(tilepos)
storage = 1533
storage2 = 1534
storage3 = 1535
bow = getPlayerStorageValue(cid,storage2)
bow2 = getPlayerStorageValue(cid,storage3)
timer1 = getPlayerStorageValue(cid,storage)
timer2 = os.time()
 
time = os.difftime(timer2, timer1)
 
add = timer2 + 1
 
if item.itemid == 2640 then
 if bow2 == -1 then
   setPlayerStorageValue(cid,storage,add)
   setPlayerStorageValue(cid,storage2,-1)
   setPlayerStorageValue(cid,storage3,1)
   doRemoveItem(item.uid,1)
 else
   doPlayerSendCancel(cid,"You are already using water boots.")
 end
return 1
end
 
if item.itemid ~= 2640 then
 if timer1 >= 0 then
   if time <= tempo then
     doTeleportThing(cid,topos)
     doSendMagicEffect(topos,53)
     doSendMagicEffect(topos,1)
   else
    doPlayerSendCancel(cid,"Use the water boots for jump on the water.")
     if bow > -2 then   
     doPlayerAddItem(cid,2640,1)
     setPlayerStorageValue(cid,storage2,-2)
     setPlayerStorageValue(cid,storage3,-1)
     end
     if time >= tempo2 then
       if tile.itemid >= 4608 and tile.itemid <= 4625 then
         doTeleportThing(cid,getPlayerMasterPos(cid))
         doPlayerSendCancel(cid,22,"Use the water boots for jump on the water.")
         setPlayerStorageValue(cid,storage,-1)
         setPlayerStorageValue(cid,storage2,-1)
       else
         doPlayerSendCancel(cid,22,"Use the water boots for jump on the water.")
         setPlayerStorageValue(cid,storage,-1)
         setPlayerStorageValue(cid,storage2,-1)
       end
     end
   end
 else
   return 0
 end
end
return 1
end

Now add this code to actions.xml

XML:
<action itemid="4646" script="water boots.lua" />
<action itemid="4645" script="water boots.lua" />
<action itemid="4644" script="water boots.lua" />
<action itemid="4647" script="water boots.lua" />
<action itemid="4648" script="water boots.lua" />
<action itemid="4649" script="water boots.lua" />
<action itemid="4650" script="water boots.lua" />
<action itemid="4651" script="water boots.lua" />
<action itemid="4652" script="water boots.lua" />
<action itemid="4653" script="water boots.lua" />
<action itemid="4654" script="water boots.lua" />
<action itemid="4655" script="water boots.lua" />
<action itemid="4828" script="water boots.lua" />
<action itemid="4829" script="water boots.lua" />
<action itemid="4830" script="water boots.lua" />
<action itemid="4831" script="water boots.lua" />
<action itemid="493" script="water boots.lua" />
<action itemid="494" script="water boots.lua" />
<action itemid="495" script="water boots.lua" />
<action itemid="496" script="water boots.lua" />
<action itemid="497" script="water boots.lua" />
<action itemid="498" script="water boots.lua" />
<action itemid="499" script="water boots.lua" />
<action itemid="500" script="water boots.lua" />
<action itemid="501" script="water boots.lua" />
<action itemid="502" script="water boots.lua" />
<action itemid="503" script="water boots.lua" />
<action itemid="504" script="water boots.lua" />
<action itemid="505" script="water boots.lua" />
<action itemid="3553" script="water boots.lua" />
<action itemid="3554" script="water boots.lua" />
<action itemid="3555" script="water boots.lua" />
<action itemid="3556" script="water boots.lua" />
<action itemid="3557" script="water boots.lua" />
<action itemid="3558" script="water boots.lua" />
<action itemid="3559" script="water boots.lua" />
<action itemid="3560" script="water boots.lua" />
<action itemid="3561" script="water boots.lua" />
<action itemid="3562" script="water boots.lua" />
<action itemid="3563" script="water boots.lua" />
<action itemid="3564" script="water boots.lua" />
<action itemid="3565" script="water boots.lua" />
<action itemid="3556" script="water boots.lua" />
<action itemid="3567" script="water boots.lua" />
<action itemid="3568" script="water boots.lua" />
<action itemid="4632" script="water boots.lua" />
<action itemid="4633" script="water boots.lua" />
<action itemid="4634" script="water boots.lua" />
<action itemid="4635" script="water boots.lua" />
<action itemid="4636" script="water boots.lua" />
<action itemid="4637" script="water boots.lua" />
<action itemid="4638" script="water boots.lua" />
<action itemid="4639" script="water boots.lua" />
<action itemid="4640" script="water boots.lua" />
<action itemid="4641" script="water boots.lua" />
<action itemid="4642" script="water boots.lua" />
<action itemid="4643" script="water boots.lua" />
<action itemid="4608" script="water boots.lua" />
<action itemid="4609" script="water boots.lua" />
<action itemid="4610" script="water boots.lua" />
<action itemid="4611" script="water boots.lua" />
<action itemid="4612" script="water boots.lua" />
<action itemid="4613" script="water boots.lua" />
<action itemid="4614" script="water boots.lua" />
<action itemid="4615" script="water boots.lua" />
<action itemid="4616" script="water boots.lua" />
<action itemid="4617" script="water boots.lua" />
<action itemid="4618" script="water boots.lua" />
<action itemid="4619" script="water boots.lua" />
<action itemid="4620" script="water boots.lua" />
<action itemid="4621" script="water boots.lua" />
<action itemid="4622" script="water boots.lua" />
<action itemid="4623" script="water boots.lua" />
<action itemid="4624" script="water boots.lua" />
<action itemid="4625" script="water boots.lua" />
<action itemid="2640" script="water boots.lua" />


data\movements\movements.xml

XML:
<movevent event="Equip" itemid="6132" slot="feet" function="onEquipItem" />
<movevent event="Equip" itemid="2640" slot="feet" function="onEquipItem" />
<movevent event="DeEquip" itemid="2640" slot="feet" function="onDeEquipItem" />
 
But you have to click on the boots, i want with out clicking!!!
 
Last edited:
Back
Top