• 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!

Nieśmiertelność

Status
Not open for further replies.

maniekrox

New Member
Joined
Aug 21, 2009
Messages
3
Reaction score
0
Mam pewien błąd. Otóż ludzie leją się przed depo hp spada im do 0 nick znika ale postać nie pada. Można dalej biegać, pisać itd. Uleczyć się już nie można. W silniku wyskakuje błąd:
[Error - CreatureScript Interface]
buffer:onKill
Description:
[string "loadBuffer"]:99: attempt to index a number value stack traceback:
[string "loadBuffer"]:99: in function <[string "loadBuffer"]:6>
Szczerze mówiąc to dziwna sprawa, ale mam nadzieje, ze ktoś wie jak to naprawić. Nie wszyscy są "nieśmiertelni".
Jeszcze dam zawartość mojego onkill.lua:
function onKill(cid, target)
if(isPlayer(target) == FALSE) then
for k, v in pairs(wow_like_quests_storages) do
local storage = getPlayerStorageValue(k)
if(storage >= 0) then
if(storage < v.amount) then
setPlayerStorageValue(cid, k, storage+1)
if(v.on_kill) then
v.on_kill(cid, parameters)
end
end
if((storage+1) == v.amount) then
if(v.on_finish) then
v.on_finish(cid, parameters)
end
end
end
end
end
return TRUE
end
 
Może masz nie działający war system albo bounty hunters. Usuń te skrypty i zobacz czy dalej będzie działo się to samo.
 
Zgadza się. Musiałem wyrzucić war system.. Wielkie dzięki za pomoc!
 
Status
Not open for further replies.
Back
Top