I see one script at radonia and i decided to make ^_^
in radonia when u passing to main u are teleported at water ...
Starting.. goto data/movements.xml and add this
goto data/movements/scripts and create a folder 'playermoving' and add playermoving.lua inside...
explain...
water ids ..
actionid of waterid..
Next position..
Time...
don't let you logout and walk
border of "boat"
setactionid added to work at rev 426 o.o
First:
when u walk to tile[405] with actionid [8885] u are teleported 1 sqm up .. and it starts moving =]
PS: when u moving the code don't let you move/logout [ mayNotMove(cid, 1)
mayNotLogout(cid, 1)
]
and at end .. tile 405 actionid 8888 .. [
mayNotMove(cid, 0)
mayNotLogout(cid, 0)
You can change the time for the next event editing it for another value:
addEvent(onTime,1*1*550,a)
'1*1*550'
well .. is it
not mine idea .. but i do it myself :wub:
i love the scripts of Radonia Server
Know Bugs:
* if more of 1 player use it at same time don't remove some "borders".
ps: If someone know why it don't setting actionid automatic at rev 426 plx tell me =] ( only in this script )
ps2: bad english and bad scripter.. but i try ! ;*
Edit1: Well .. added setactionid to item.. at rev 426 don't working without setting it don't know why o.o
Edit2: added know bugs..
Edit3: oh thz for kennyeni .. i forgot to put credits for me o.o
in radonia when u passing to main u are teleported at water ...
Starting.. goto data/movements.xml and add this
Code:
<movevent event="StepIn" itemid="405" script="playermoving/playermoving.lua"/>
<movevent event="StepOut" itemid="405" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4608" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4609" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4610" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4611" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4612" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4613" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4614" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4615" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4616" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4617" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4618" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4619" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4620" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4621" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4622" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4623" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4624" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4625" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4664" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4665" script="playermoving/playermoving.lua"/>
<movevent event="StepIn" itemid="4666" script="playermoving/playermoving.lua"/>
Code:
-- by Babalow
local [COLOR=blue]waterItemID = {4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4664, 4665, 4666}[/COLOR]
local [COLOR=slategray]decreasingItemID = {405}[/COLOR]
function onStepOut(cid, item, position, fromPosition)
if isInArray(decreasingItemID, item.itemid) == TRUE and [COLOR=red]item.actionid == 8556 [/COLOR]then
doTransformItem(item.uid, 4608)
[COLOR=indigo]doSetItemActionId(item.uid, 8556)[/COLOR]
end
return TRUE
end
function onStepIn(cid, item, position, fromPosition)
if [COLOR=blue]isInArray(waterItemID, item.itemid) == TRUE [/COLOR]and [COLOR=red]item.actionid == 8556[/COLOR] then
doTransformItem(item.uid, 405)
[COLOR=indigo]doSetItemActionId(item.uid, 8556)[/COLOR]
charPos = getPlayerPosition(cid)
wall1 = {x=charPos.x+1, y=charPos.y, z=charPos.z}
wall2 = {x=charPos.x, y=charPos.y+1, z=charPos.z}
wall3 = {x=charPos.x-1, y=charPos.y, z=charPos.z}
wall4 = {x=charPos.x, y=charPos.y-1, z=charPos.z}
wall5 = {x=charPos.x+1, y=charPos.y+1, z=charPos.z}
wall6 = {x=charPos.x-1, y=charPos.y-1, z=charPos.z}
wall7 = {x=charPos.x+1, y=charPos.y-1, z=charPos.z}
wall8 = {x=charPos.x-1, y=charPos.y+1, z=charPos.z}
[COLOR=darkorange] doCreateItem(437,1,wall1)[/COLOR]
[COLOR=darkorange] doCreateItem(435,1,wall2)[/COLOR]
[COLOR=darkorange] doCreateItem(436,1,wall3)[/COLOR]
[COLOR=darkorange] doCreateItem(434,1,wall4)[/COLOR]
[COLOR=darkorange] doCreateItem(444,1,wall5)[/COLOR]
[COLOR=darkorange] doCreateItem(442,1,wall6)[/COLOR]
[COLOR=darkorange] doCreateItem(443,1,wall7)[/COLOR]
[COLOR=darkorange] doCreateItem(445,1,wall8)[/COLOR]
[COLOR=lime]mayNotMove(cid, 1)[/COLOR]
[COLOR=lime]mayNotLogout(cid, 1)[/COLOR]
[COLOR=orange]NextPos = {x=charPos.x, y=charPos.y-1, z=charPos.z}[/COLOR]
local a = {cid=cid, NextPos=NextPos}
[COLOR=sienna]addEvent(onTime,1*1*550,a)[/COLOR]
elseif item.itemid == 405 and item.actionid == 8885 then
doTeleportThing(cid, {x = getPlayerPosition(cid).x, y = getPlayerPosition(cid).y - 1, z = getPlayerPosition(cid).z}, FALSE)
elseif item.itemid == 405 and item.actionid == 8888 then
mayNotMove(cid, 0)
mayNotLogout(cid, 0)
end
return TRUE
end
function onTime(a)
Rwall1 = {x=charPos.x+1, y=charPos.y, z=charPos.z, stackpos=1}
Rwall2 = {x=charPos.x, y=charPos.y+1, z=charPos.z, stackpos=1}
Rwall3 = {x=charPos.x-1, y=charPos.y, z=charPos.z, stackpos=1}
Rwall4 = {x=charPos.x, y=charPos.y-1, z=charPos.z, stackpos=1}
Rwall5 = {x=charPos.x+1, y=charPos.y+1, z=charPos.z, stackpos=1}
Rwall6 = {x=charPos.x-1, y=charPos.y-1, z=charPos.z, stackpos=1}
Rwall7 = {x=charPos.x+1, y=charPos.y-1, z=charPos.z, stackpos=1}
Rwall8 = {x=charPos.x-1, y=charPos.y+1, z=charPos.z, stackpos=1}
getwall1 = getThingfromPos(Rwall1)
getwall2 = getThingfromPos(Rwall2)
getwall3 = getThingfromPos(Rwall3)
getwall4 = getThingfromPos(Rwall4)
getwall5 = getThingfromPos(Rwall5)
getwall6 = getThingfromPos(Rwall6)
getwall7 = getThingfromPos(Rwall7)
getwall8 = getThingfromPos(Rwall8)
doRemoveItem(getwall1.uid,1)
doRemoveItem(getwall2.uid,1)
doRemoveItem(getwall3.uid,1)
doRemoveItem(getwall4.uid,1)
doRemoveItem(getwall5.uid,1)
doRemoveItem(getwall6.uid,1)
doRemoveItem(getwall7.uid,1)
doRemoveItem(getwall8.uid,1)
doTeleportThing(a.cid,a.NextPos,TRUE)
end
water ids ..
actionid of waterid..
Next position..
Time...
don't let you logout and walk
border of "boat"
setactionid added to work at rev 426 o.o
First:
when u walk to tile[405] with actionid [8885] u are teleported 1 sqm up .. and it starts moving =]
PS: when u moving the code don't let you move/logout [ mayNotMove(cid, 1)
mayNotLogout(cid, 1)
]
and at end .. tile 405 actionid 8888 .. [
mayNotMove(cid, 0)
mayNotLogout(cid, 0)
You can change the time for the next event editing it for another value:
addEvent(onTime,1*1*550,a)
'1*1*550'
well .. is it
not mine idea .. but i do it myself :wub:
i love the scripts of Radonia Server
Know Bugs:
* if more of 1 player use it at same time don't remove some "borders".
ps: If someone know why it don't setting actionid automatic at rev 426 plx tell me =] ( only in this script )
ps2: bad english and bad scripter.. but i try ! ;*
Edit1: Well .. added setactionid to item.. at rev 426 don't working without setting it don't know why o.o
Edit2: added know bugs..
Edit3: oh thz for kennyeni .. i forgot to put credits for me o.o
Last edited: