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

Lua Cyber's Rep System bug

luigilc

Lua Learner
Joined
Mar 24, 2010
Messages
863
Reaction score
37
Location
A music box
I get this bug when try to kill ppl using cyber's rep system :
PHP:
[23/08/2011 14:48:30] [Error - CreatureScript Interface] 
[23/08/2011 14:48:30] buffer:onKill
[23/08/2011 14:48:30] Description: 
[23/08/2011 14:48:30] [string "loadBuffer"]:10: attempt to call global 'getPVPOption' (a nil value)
[23/08/2011 14:48:30] stack traceback:
[23/08/2011 14:48:30] 	[string "loadBuffer"]:10: in function <[string "loadBuffer"]:9>

any help?
 
find and change:
LUA:
if isPlayer(cid) and isPlayer(target) and getPlayerIp(cid) ~= getPlayerIp(target) and getCreatureStorage(cid, rep.lastKilled) ~= getPlayerGUID(target) and not getPVPOption(getThingPos(cid)) then
to:
LUA:
if isPlayer(cid) and isPlayer(target) and getPlayerIp(cid) ~=  getPlayerIp(target) and getCreatureStorage(cid, rep.lastKilled) ~=  getPlayerGUID(target) and not getTileInfo(getThingPos(cid)).pvp then
 
Back
Top