The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Domination Event Help
Author Message
Van Glan Bloom
Journeyman
*

Posts: 104
Likes Given: 2
Likes Received: 3 in 3 posts
Joined: Jun 2013
Reputation: 0



Post: #6
RE: Domination Event Help
I have fixed the bugs exept one. But now i have 1 new bug

If the red team player kill a blue team, the red team won 1 point and blue team lose 1 point. ( work good )

Bug ( Error ) :
But if the blue team kill a player of red team, all the times loses 1 point. This should not happen.
The blue team should win a point and the red team lose a point.

This is a event :

Code:
[EVENTS e_event_domination]
ON=@LOGIN
IF !(<VAR.DOMINATION>)
    IF (<FLAGS> & 00000002)
        RESURRECT
        domination_equiparmor_cleartags
    ENDIF
TAG0.ISINEVENT=0
TAG0.DOMINATION_TEAM=
KARMA=<eval <TAG0.OLD_KARMA>>
FAME=<eval <TAG0.OLD_FAME>>
KILLS=<eval <TAG0.OLD_KILLS>>
TAG0.OLD_KARMA=
TAG0.OLD_FAME=
TAG0.OLD_KILLS=
MODMAXWEIGHT=0
EVENTS -e_event_domination
flags=<flags> &~ statf_criminal
FOR 1 <FINDLAYER.21.COUNT>
    FINDLAYER.21.FINDCONT.0.REMOVE
ENDFOR
FINDLAYER.1.REMOVE
FINDLAYER.2.REMOVE
FINDLAYER.3.REMOVE
FINDLAYER.4.REMOVE
FINDLAYER.5.REMOVE
FINDLAYER.6.REMOVE
FINDLAYER.7.REMOVE
FINDLAYER.8.REMOVE
FINDLAYER.9.REMOVE
FINDLAYER.10.REMOVE
FINDLAYER.12.REMOVE
FINDLAYER.13.REMOVE
FINDLAYER.14.REMOVE
FINDLAYER.17.REMOVE
FINDLAYER.18.REMOVE
FINDLAYER.19.REMOVE
FINDLAYER.20.REMOVE
FINDLAYER.22.REMOVE
FINDLAYER.23.REMOVE
FINDLAYER.24.REMOVE
FINDLAYER.31.REMOVE
MEMORYFINDTYPE.080.remove
MEMORYFINDTYPE.01.remove
MEMORYFINDTYPE.08.remove
MEMORYFINDTYPE.010.remove
MEMORYFINDTYPE.020.remove
GO=3661,1196
domination_getstats
domination_clearstats
MESSAGE @09c1 Thank you for participating!
ENDIF

ON=@DEATHCORPSE
ARGO.REMOVE

ON=@DEATH
domination_setarmor
SERV.NEWITEM=i_event_domination_res_timer
NEW.EQUIP
IF (<UID>==<ACT.UID>)
    serv.allclients f_broadcast_domination @0481,0,1 [Domination]: <NAME> killed himself. (-<eval <def0.domination_points_death>>)
    VAR.DOMINATION=<TAG0.DOMINATION_TEAM> -=<def0.domination_points_death>
    domination_checkscores
ELSE
        IF !(STRCMPI(<TAG0.DOMINATION_TEAM>,RED))
            serv.allclients f_broadcast_domination @0481,0,1 [Domination]: <NAME> was killed by his teammate <ACT.NAME>. (-<eval <def0.domination_points_teamkill>>)
            VAR.DOMINATION_RED -=<def0.domination_points_teamkill>
            domination_checkscores
        ELSE
            serv.allclients f_broadcast_domination @0481,0,1 [Domination]: <NAME> was killed by <ACT.NAME>. (+<eval <def0.domination_points_kill>> / -<eval <def0.domination_points_death>>)
            VAR.DOMINATION_RED  +=<def0.domination_points_kill>
            VAR.DOMINATION_BLUE -=<def0.domination_points_death>
            domination_checkscores
        ENDIF
    ELSE
        IF !(STRCMPI(<TAG0.DOMINATION_TEAM>,BLUE))
            serv.allclients f_broadcast_domination @0481,0,1 [Domination]: <NAME> was killed by his teammate <ACT.NAME>. (-<eval <def0.domination_points_teamkill>>)
            VAR.DOMINATION_BLUE -=<def0.domination_points_teamkill>
            domination_checkscores
        ELSE
            serv.allclients f_broadcast_domination @0481,0,1 [Domination]: <NAME> was killed by <ACT.NAME>. (+<eval <def0.domination_points_kill>> / -<eval <def0.domination_points_death>>)
            VAR.DOMINATION_BLUE +=<def0.domination_points_kill>
            VAR.DOMINATION_RED -=<def0.domination_points_death>
            domination_checkscores
        ENDIF
    ENDIF
ENDIF

ON=@SPELLSELECT
IF !(<ISGM>)
IF (<ARGN1>==22) || (<ARGN1>==24) || (<ARGN1>==32) || (<ARGN1>==33) || (<ARGN1>==35) || (<ARGN1>==40) || (<ARGN1>==45) || (<ARGN1>==50) || (<ARGN1>==52) || (<ARGN1>==56) || (<ARGN1>==59) || (<ARGN1>==60) || (<ARGN1>==61) || (<ARGN1>==62) || (<ARGN1>==63) || (<ARGN1>==64) || (<ARGN1>==44)
    SRC.SYSMESSAGE @09c1 You can't use that spell here.
    RETURN 1
ENDIF
ENDIF

ON=@SKILLSELECT
IF !(<ISGM>)
IF (<ARGN>==21) || (<ARGN>==47)
    SRC.SYSMESSAGE @09c1 You can't hide here.
    RETURN 1
ENDIF
ENDIF

ON=@CLICK
IF !(STRCMPI(<TAG0.DOMINATION_TEAM>,RED))
    MESSAGE @0026 (RED Team)
    MESSAGE @0026 <name>
    RETURN 1
ELSE
    MESSAGE @0002 (BLUE Team)
    MESSAGE @0002 <name>
    RETURN 1
ENDIF

ON=@ITEMDROPON_GROUND
IF !(<SRC.ISGM>)
SRC.SYSMESSAGE @09c1 That item will decay in 15 seconds!
ACT.EVENTS +t_event_decay
ACT.TIMER=15
ENDIF

Can anyone identify the problem ?
10-02-2014 11:08 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Domination Event Help - Van Glan Bloom - 10-02-2014, 09:32 AM
RE: Domination Event Help - Extreme - 10-02-2014, 10:55 AM
RE: Domination Event Help - Van Glan Bloom - 10-02-2014, 06:25 PM
RE: Domination Event Help - dagger4k - 10-02-2014, 08:13 PM
RE: Domination Event Help - darksun84 - 10-02-2014, 08:59 PM
RE: Domination Event Help - Van Glan Bloom - 10-02-2014 11:08 PM
RE: Domination Event Help - Skul - 10-02-2014, 11:15 PM
RE: Domination Event Help - Van Glan Bloom - 10-05-2014, 11:33 PM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)