CreatureEvent (SecureMode) PVP System

rafalzibi

New Member
Joined
Jan 19, 2009
Messages
10
Reaction score
0
[26/07/2013 13:35:16] [Error - CreatureScript Interface]
[26/07/2013 13:35:16] data/creaturescripts/scripts/raczka1.lua:eek:nCombat
[26/07/2013 13:35:16] Description:
[26/07/2013 13:35:16] data/creaturescripts/scripts/raczka1.lua:2: attempt to call global 'getPlayerSecureMode' (a nil value)
[26/07/2013 13:35:16] stack traceback:
[26/07/2013 13:35:16] data/creaturescripts/scripts/raczka1.lua:2: in function <data/creaturescripts/scripts/raczka1.lua:1>
 

Amino12

New Member
Joined
Sep 15, 2008
Messages
54
Reaction score
6
Location
Poland
[26/07/2013 13:35:16] [Error - CreatureScript Interface]
[26/07/2013 13:35:16] data/creaturescripts/scripts/raczka1.lua:eek:nCombat
[26/07/2013 13:35:16] Description:
[26/07/2013 13:35:16] data/creaturescripts/scripts/raczka1.lua:2: attempt to call global 'getPlayerSecureMode' (a nil value)
[26/07/2013 13:35:16] stack traceback:
[26/07/2013 13:35:16] data/creaturescripts/scripts/raczka1.lua:2: in function <data/creaturescripts/scripts/raczka1.lua:1>
http://otland.net/f35/getplayersecuremode-cid-getplayerfightmode-cid-128276/
 

elo1989

Member
Joined
Jun 30, 2010
Messages
31
Reaction score
0
hello,
what I have to do, becouse this system not working on my tfs 0.3.6 pl :(
this is my log:
XML:
[03/02/2015 01:01:53] [Error - CreatureScript Interface] 
[03/02/2015 01:01:53] data/creaturescripts/scripts/securemode/raczka1.lua:onCombat
[03/02/2015 01:01:53] Description: 
[03/02/2015 01:01:53] data/creaturescripts/scripts/securemode/raczka1.lua:2: attempt to call global 'getPlayerSecureMode' (a nil value)
[03/02/2015 01:01:53] stack traceback:
[03/02/2015 01:01:53]     data/creaturescripts/scripts/securemode/raczka1.lua:2: in function <data/creaturescripts/scripts/securemode/raczka1.lua:1>
please help me.
 

Tegardee

The Boss
Joined
Jun 18, 2014
Messages
106
Reaction score
0
Location
Brazil
making it a talkaction?

example: a player says !secure on, then the same player enters Secure Mode
 

Blade33711

Member
Joined
Aug 6, 2012
Messages
133
Reaction score
0
Location
Poland
Error :/
Lua:
[03/02/2015 01:01:53] [Error - CreatureScript Interface]
[03/02/2015 01:01:53] data/creaturescripts/scripts/securemode/raczka1.lua:onCombat
[03/02/2015 01:01:53] Description:
[03/02/2015 01:01:53] data/creaturescripts/scripts/securemode/raczka1.lua:2: attempt to call global 'getPlayerSecureMode' (a nil value)
[03/02/2015 01:01:53] stack traceback:
[03/02/2015 01:01:53] data/creaturescripts/scripts/securemode/raczka1.lua:2: in function <data/creaturescripts/scripts/securemode/raczka1.lua:1>
 

Blade33711

Member
Joined
Aug 6, 2012
Messages
133
Reaction score
0
Location
Poland
Error :/
Lua:
[03/02/2015 01:01:53] [Error - CreatureScript Interface]
[03/02/2015 01:01:53] data/creaturescripts/scripts/securemode/raczka1.lua:onCombat
[03/02/2015 01:01:53] Description:
[03/02/2015 01:01:53] data/creaturescripts/scripts/securemode/raczka1.lua:2: attempt to call global 'getPlayerSecureMode' (a nil value)
[03/02/2015 01:01:53] stack traceback:
[03/02/2015 01:01:53] data/creaturescripts/scripts/securemode/raczka1.lua:2: in function <data/creaturescripts/scripts/securemode/raczka1.lua:1>
BUMP
 

Blade33711

Member
Joined
Aug 6, 2012
Messages
133
Reaction score
0
Location
Poland
Of course
Lua:
function onCombat(cid, target)
    if(target and isPlayer(target) and getPlayerSecureMode(cid)) then
        doPlayerSendCancel(cid, "Turn secure mode off if you really want to attack unmarked players.")
        return false
    end
    return true
end
BUMP!!

BUMP, help someone pls

Error :/
Lua:
[03/02/2015 01:01:53] [Error - CreatureScript Interface]
[03/02/2015 01:01:53] data/creaturescripts/scripts/securemode/raczka1.lua:onCombat
[03/02/2015 01:01:53] Description:
[03/02/2015 01:01:53] data/creaturescripts/scripts/securemode/raczka1.lua:2: attempt to call global 'getPlayerSecureMode' (a nil value)
[03/02/2015 01:01:53] stack traceback:
[03/02/2015 01:01:53] data/creaturescripts/scripts/securemode/raczka1.lua:2: in function <data/creaturescripts/scripts/securemode/raczka1.lua:1>
Someone know what to do?
 
Last edited by a moderator:
Top