• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Szybkie pytanko - skrypt.

Status
Not open for further replies.

GarQet

Own3d!
Joined
Feb 10, 2009
Messages
1,381
Solutions
14
Reaction score
81
Siemaneczko, mam mały problem z banalnym skryptem.
Skrypt ma działać na takiej zasadzie, że zamiast zgonu teleportuje do temple.
Code:
function onPrepareDeath(cid, deathList)
	doTeleportThing(cid, {x=1242,y=1142,z=7})
	doPlayerAddHealth(cid, getCreatureMaxHealth(cid))
	doPlayerAddMana(cid, getCreatureMaxMana(cid))
	doPlayerAddLevel(cid, -2)
return false
end

Code:
	<event type="preparedeath" name="ded" event="script" value="ded.lua"/>
Nie kmienie co jest źle, bo skrypt nie działa tak jak powinien :blink:?
Proszę o wskazówkę, ew. pomoc, bardzo zależy mi na czasie!
 
Last edited:
zadeklarowales funkcje preparedeath w login.lua??

Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
	doTeleportThing(cid, {x=1242,y=1142,z=7})
	doPlayerAddHealth(cid, getCreatureMaxHealth(cid))
	doPlayerAddMana(cid, getCreatureMaxMana(cid))
	doPlayerAddLevel(cid, -2)
return false
end
jeszcze sprawdz to jak by co
 
Temat do zamknięcia, wszystko działało ;P
 
Status
Not open for further replies.
Back
Top