What's new

[8.1][movements] P?ywanie statkiem sta? sie prawdziwym ?egla?em!

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??:

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? :p

Skrypt nietestowany lecz powinien dzia?a? xD
 

Konri

User
Joined
May 24, 2008
Messages
12
Reaction score
0
eeee, ja zamieni?em si? w "Void" -.-
troche dziwne :/

@edit
a teraz wog?le nie dzia?a -.-
 
Last edited:

Yondaime

Advanced User
Joined
Apr 5, 2008
Messages
311
Reaction score
21
ehh..... silnik = devland? jak tak to sie niedziw :D
 

Charlie

User
Joined
Apr 20, 2008
Messages
22
Reaction score
1
No sorry, ale jaki ma sens dawanie nieprzetestowanego skryptu? G?upota totalna... Przetestuj a potem wystaw na forum! Bo sie bajzel niez?y robi!
 

Yondaime

Advanced User
Joined
Apr 5, 2008
Messages
311
Reaction score
21
Charli wie? coto jest Antywirus Czu?y na ots?
mam w?asnie taki antyvirus......

aha to niewiem pewnie zle cos napisalem zmienie to jak dojde do tego
 

Grelos

User
Joined
May 22, 2008
Messages
31
Reaction score
2
Wielkie thx ale i tak ten plik z edytuje bo musze zrobic kolejke g?rsk? :D
 

Yondaime

Advanced User
Joined
Apr 5, 2008
Messages
311
Reaction score
21
a dzia?a ci wogule xD?

ps. chodzi o niedytowanie i wstawianie na forum na ots rubcie se co chcecie z tym skryptem i nie m?wi? jak zedytujecie skryt o jeju niedzia?a mi :(
 

GMdragon

Advanced User
Joined
May 17, 2008
Messages
189
Reaction score
3
Charli wie? coto jest Antywirus Czu?y na ots?
mam w?asnie taki antyvirus......

aha to niewiem pewnie zle cos napisalem zmienie to jak dojde do tego

A s?ownik te? nie gryzie... chyba ?e nie "wie? coto"

tutaj obowi?zuje poprawna pisownie... na innych forach tak nie ma ale to jest wyatkowe :D
 

Yondaime

Advanced User
Joined
Apr 5, 2008
Messages
311
Reaction score
21
je?li chce nabija? posty to dajcie mu bana a je?li chce mnie powyzywa? niech napisze na orv to takie trudne?
 

DeGhost

Active User
Joined
Apr 14, 2008
Messages
82
Reaction score
7
mam TFS 2.12 i skrypcik prawie dzia?a - zamiast w ??dk? zamieniam sie w pole ognia ale to poprawi?em 1s gorzej z tym ze nie mog? powodzie p?ywa? tylko po l?dzie ;) - ale to p??niej poprawie ;)
 
G

Gudio

Guest
Prosz? autora tematu, przyzna? si? w pierwszym po?cie ?e skrypt jest nie tw?j. Bo znalaz?em par? link?w z takim samym skryptem, tylko innym opisem. Inaczej sko?czy si? na banie czyt. plagiat.
 

Sokolik

User
Joined
Jun 6, 2008
Messages
25
Reaction score
0
hmm... niby wszystko ok, ale podaj ID albo nazwe tej lodzi:(
 
Top