What's new

Poszukuj? skryptu na teleportacj?

Status
Not open for further replies.

Lee Parkour

Advanced User
Joined
Sep 25, 2010
Messages
294
Reaction score
30
Szuka?em chyba wsz?dzie, nawet wujek google nie pom?g? ;|

Skrypt jest na teleportacje, tzn. wejdziesz w przedmiot o pozycji x=1 y=1 z=1 a teleportuje Ci? na x=2 y=2 z=2


EDIT $#$#$

Potrzebuj? jeszcze skryptu, ?e gdy osi?gniemy np. 320 poziom ko?czymy gr?.
 

Szturo

User
Joined
Dec 19, 2010
Messages
20
Reaction score
9
Odp: Poszukuj? skryptu na teleportacj?

#1
Code:
function onStepIn(cid, item, pos)
local tppos = {x=535, y=600, z=9}

doTeleportThing(cid, tppos)
doPlayerSendTextMessage(cid, 19, "zostales teleporniety")

return 1
end

Code:
<movevent type="StepIn" actionid="7000" event="script" value="tp.lua"/>

Action id ustawiasz na przedmiot/pod?oge w kt?ra wchodzimy.

#down
Pewnie ze max level = 320 :D Wi?cej nie mo?na wbi?, ale poczekajmy

Pozdrawiam,
Szturo
 
Last edited:

Oskar

Forum friend
Joined
Jan 24, 2009
Messages
2,256
Reaction score
331
Odp: Poszukuj? skryptu na teleportacj?

Jak to ko?czymy gr?? xd Wyja?nij dok?adniej to Ci napisz?. P?ki co nie wiem jak si? za to zabra?.

[Moderatorzy, edytuj? tego posta je?li poda wi?cej informacji]
 

Lee Parkour

Advanced User
Joined
Sep 25, 2010
Messages
294
Reaction score
30
Odp: Poszukuj? skryptu na teleportacj?

tzn. osi?gn?? maksymalny poziom, np. wbij? poziom 260 i wy?ej ju? nie mog?.
 

Oskar

Forum friend
Joined
Jan 24, 2009
Messages
2,256
Reaction score
331
Odp: Poszukuj? skryptu na teleportacj?

W data/creaturescripts/scripts zr?b nowy plik i wklej:
PHP:
local max_level = 260

function onAdvance(cid, skill, oldLevel, newLevel)
if isPlayer(cid) and skill == SKILL__LEVEL and newLevel == max_level then
	doPlayerSetRate(cid, SKILL__LEVEL, 0)
end
return true
end
Do creaturescripts.xml dodaj:
PHP:
<event type="advance" name="LvL" event="script" value="nazwa_pliku.lua"/>
Do login.lua daj:
PHP:
registerCreatureEvent(cid, 'LvL')
 

Lee Parkour

Advanced User
Joined
Sep 25, 2010
Messages
294
Reaction score
30
Odp: Poszukuj? skryptu na teleportacj?

Dobra, dzi?ki ch?opaki, wszystko dzia?a.
Dajcie im po pkt dla ot expert?w
Reputy si? posypa?y.

PS;
//Do zamkni?cia
 
Last edited:
Status
Not open for further replies.
Top