CreatureEvent (SecureMode) PVP System

rafalzibi

New Member
Joined
Jan 19, 2009
Messages
10
Best answers
0
Likes
0
#21
[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
Best answers
0
Likes
6
Location
Poland
#23
[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/
 
Joined
Jun 30, 2010
Messages
31
Best answers
0
Likes
0
#24
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.
 
Joined
Jun 18, 2014
Messages
106
Best answers
0
Likes
0
Location
Brazil
#26
making it a talkaction?

example: a player says !secure on, then the same player enters Secure Mode
 
Joined
Aug 6, 2012
Messages
133
Best answers
1
Likes
0
Location
Poland
#28
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>
 
Joined
Aug 6, 2012
Messages
133
Best answers
1
Likes
0
Location
Poland
#29
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
 
Joined
Aug 6, 2012
Messages
133
Best answers
1
Likes
0
Location
Poland
#31
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