Yondaime
Advanced User
- Joined
- Apr 5, 2008
- Messages
- 311
- Reaction score
- 21
Witam!
bardzo dlugo nierobi?em skrypt?w i mam nadzieje ?e bendzie to bendzie HIT xD
Dzia?anie skryptu:
po stanie?ciu na d?ug? ?udke w takie paski dziwne
----
----
----
zamimeniasz sie w ma?y stateczek i mo?esz p?ywa? xD
Skrypt:
W movoments
robimy plik Boat.lua
oto jego zawarto??:
Movoments.xml:
<movevent event="StepIn" itemid="3589" script="Boat.lua" />
<movevent event="StepIn" itemid="3594" script="Boat.lua" />
UWAGA! SKRZPT JEST W 100% ROBIONY PRZEZEMNIE!
SKRYPT BAZOWANY NA SWIM SYSTEM!
UWAGA!TEN SKRYPT PODLEGA PRAW? AUTORSKIM ZABRANIA SI?:
PUBLIKOWANIA SKRYPTU NA INNYCH FORACH
PRZYW?ASZCZANIA SOBIE SKRYPTU[podawanie sie za tw?rce]
i to pro?ba prosze nieedytowa?
Skrypt nietestowany lecz powinien dzia?a? xD
bardzo dlugo nierobi?em skrypt?w i mam nadzieje ?e bendzie to bendzie HIT xD
Dzia?anie skryptu:
po stanie?ciu na d?ug? ?udke w takie paski dziwne
----
----
----
zamimeniasz sie w ma?y stateczek i mo?esz p?ywa? xD
Skrypt:
W movoments
robimy plik Boat.lua
oto jego zawarto??:
function onStepIn(cid, item, pos)
beachpos = {x=pos.x, y=pos.y, z=pos.z, stackpos=253}
getplayer = getThingfromPos(beachpos)
outfit = {lookTypeex=2113,lookHead=0,lookAddons=0,lookLegs=0,lookBody=0,lookFeet=0}
outfitTime = 9000000
swimstorage = 33
normal = getCreatureOutfit(cid)
swimstatus = getPlayerStorageValue(cid,swimstorage)
if item.itemid == 3589 then
if swimstatus == -1 or swimstatus == 0 then
npos = {x=pos.x-1, y=pos.y, z=pos.z}
doTeleportThing(getplayer.uid,npos)
doSendMagicEffect(npos, 53)
doSetCreatureOutfit(cid, outfit, outfitTime)
setPlayerStorageValue(cid,swimstorage,1)
else
npos = {x=pos.x+1, y=pos.y, z=pos.z}
doTeleportThing(getplayer.uid,npos)
doRemoveCondition(cid, 1)
setPlayerStorageValue(cid,swimstorage,0)
end
elseif item.itemid == 3594 then
if swimstatus == -1 or swimstatus == 0 then
npos = {x=pos.x+1, y=pos.y, z=pos.z}
doTeleportThing(getplayer.uid,npos)
doSendMagicEffect(npos, 53)
doSetCreatureOutfit(cid, outfit, outfitTime)
setPlayerStorageValue(cid,swimstorage,1)
else
npos = {x=pos.x-1, y=pos.y, z=pos.z}
doTeleportThing(getplayer.uid,npos)
doRemoveCondition(cid, 1)
setPlayerStorageValue(cid,swimstorage,0)
end
end
return 1
end
Movoments.xml:
<movevent event="StepIn" itemid="3589" script="Boat.lua" />
<movevent event="StepIn" itemid="3594" script="Boat.lua" />
UWAGA! SKRZPT JEST W 100% ROBIONY PRZEZEMNIE!
SKRYPT BAZOWANY NA SWIM SYSTEM!
UWAGA!TEN SKRYPT PODLEGA PRAW? AUTORSKIM ZABRANIA SI?:
PUBLIKOWANIA SKRYPTU NA INNYCH FORACH
PRZYW?ASZCZANIA SOBIE SKRYPTU[podawanie sie za tw?rce]
i to pro?ba prosze nieedytowa?
Skrypt nietestowany lecz powinien dzia?a? xD