CreatureEvent (SecureMode) PVP System

Discussion in 'GlobalEvents, Spells & CreatureEvents' started by Fresh, May 10, 2011.

  1. rafalzibi

    rafalzibi New Member

    Joined:
    Jan 19, 2009
    Messages:
    10
    Likes Received:
    0
    Best Answers:
    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>
     
  2. norrow

    norrow Member

    Joined:
    Dec 16, 2012
    Messages:
    95
    Likes Received:
    3
    Best Answers:
    0
    not working :c
     
  3. Amino12

    Amino12 New Member

    Joined:
    Sep 15, 2008
    Messages:
    54
    Likes Received:
    7
    Best Answers:
    0
    http://otland.net/f35/getplayersecuremode-cid-getplayerfightmode-cid-128276/
     
  4. elo1989

    elo1989 Member

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

    elo1989 Member

    Joined:
    Jun 30, 2010
    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    refresh
     
  6. Tegardee

    Tegardee The Boss

    Joined:
    Jun 18, 2014
    Messages:
    106
    Likes Received:
    0
    Best Answers:
    0
    making it a talkaction?

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

    acan New Member

    Joined:
    Jan 11, 2018
    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    ERROR UP!
     
  8. Blade33711

    Blade33711 Member

    Joined:
    Aug 6, 2012
    Messages:
    131
    Likes Received:
    5
    Best Answers:
    1
    Error :/
    Code (Lua):
    1. [03/02/2015 01:01:53] [Error - CreatureScript Interface]
    2. [03/02/2015 01:01:53] data/creaturescripts/scripts/securemode/raczka1.lua:onCombat
    3. [03/02/2015 01:01:53] Description:
    4. [03/02/2015 01:01:53] data/creaturescripts/scripts/securemode/raczka1.lua:2: attempt to call global 'getPlayerSecureMode' (a nil value)
    5. [03/02/2015 01:01:53] stack traceback:
    6. [03/02/2015 01:01:53] data/creaturescripts/scripts/securemode/raczka1.lua:2: in function <data/creaturescripts/scripts/securemode/raczka1.lua:1>
     
  9. Blade33711

    Blade33711 Member

    Joined:
    Aug 6, 2012
    Messages:
    131
    Likes Received:
    5
    Best Answers:
    1
    BUMP
     
  10. GhostWD

    GhostWD I'm in love with the var_dump()

    Joined:
    Jan 25, 2009
    Messages:
    142
    Likes Received:
    7
    Best Answers:
    5
    Can i see your code? I mean raczka1.lua
     
  11. Blade33711

    Blade33711 Member

    Joined:
    Aug 6, 2012
    Messages:
    131
    Likes Received:
    5
    Best Answers:
    1
    Of course
    Code (Lua):
    1. function onCombat(cid, target)
    2.     if(target and isPlayer(target) and getPlayerSecureMode(cid)) then
    3.         doPlayerSendCancel(cid, "Turn secure mode off if you really want to attack unmarked players.")
    4.         return false
    5.     end
    6.     return true
    7. end
    BUMP!!

    BUMP, help someone pls

    Someone know what to do?
     
    Last edited by a moderator: Aug 10, 2018 at 11:01 PM
  12. Blade33711

    Blade33711 Member

    Joined:
    Aug 6, 2012
    Messages:
    131
    Likes Received:
    5
    Best Answers:
    1
  13. Blade33711

    Blade33711 Member

    Joined:
    Aug 6, 2012
    Messages:
    131
    Likes Received:
    5
    Best Answers:
    1

Share This Page

Loading...