Xadrian
Active Member
Witam ponownie.
Mam mały problem z skryptem w creaturescripts, mianowicie w tym skrypcie (którego jeszcze nie skończyłem):
Skrypt dochodzi tylko do 2 instrukcji. Gdy używałem print(lastHitKiller) skrypt nic nie zwracał..
W silniku nic nie ma, oprócz tych printów w skrypcie:
Inne skrypty oparte na onDeath też mi nie działają.
Mam mały problem z skryptem w creaturescripts, mianowicie w tym skrypcie (którego jeszcze nie skończyłem):
Code:
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
print('instrukcja1')
if(getCreatureName(cid) ~= lastHitKiller) then
print('instrukcja2')
if(isPlayer(lastHitKiller)) then
print('instrukcja3')
doPlayerBroadcastMessage(cid, ""..getCreatureName(lastHitKiller).." ("..getPlayerLevel(lastHitKiller).." "..getPlayerVocationName(lastHitKiller)..") killed "..getCreatureName(cid).." ("..getPlayerLevel(cid).." "..getPlayerVocationName(cid)..")!")
end
end
return TRUE
end
W silniku nic nie ma, oprócz tych printów w skrypcie:
Code:
[15/09/2009 21:38:11] Xadrian has logged in. //zalogowałem się
[15/09/2009 21:38:12] Noobhar has logged in. //zalogowałem się na noobharze
[15/09/2009 21:38:32] instrukcja1 //tutaj zabiłem xadrian'a, skrypt rozpoczął się
[15/09/2009 21:38:32] instrukcja2
[15/09/2009 21:38:32] Xadrian has logged out. //koniec skryptu