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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Experience in group !
Author Message
kevin465
Journeyman
*

Posts: 67
Likes Given: 1
Likes Received: 4 in 4 posts
Joined: Feb 2014
Reputation: 0

UO Reborn

Post: #1
Experience in group !
Ok i just want to know... my ancient lvl systems give experiance to all players hit the mobs...but now my new just give experience to one player...5 player can hit the mobs but only one have the experience ... how fix that ?

Anciant lvl system
Code:
[EVENTS e_exp]
ON=@CLICK
VAR.X=<EVAL <oSTR> /6>
IF !(0<VAR.X>)
    VAR.X=1
ENDIF
message @025,3 (Level: <EVAL <VAR.X>>)

ON=@DEATH
SRC.TAG.KS=
VAR.OLD_ACT=<ACT>
VAR.X1=<EVAL <oSTR> /1> +<EVAL <oSTR> /1>
VAR.X=<EVAL {<VAR.X1> <oSTR>}>
SRC.f_experience
ACT=<VAR.OLD_ACT>
VAR.X1=


[EVENTS e_exp_1]
ON=@CLICK
VAR.X=<EVAL <oSTR> /1>
IF !(0<VAR.X>)
    VAR.X=1
ENDIF

New lvl system
Code:
ON=@DEATH
VAR.OLD_ACT=<SRC.ACT.UID>
FINDID.i_memory_spelleffect_agility.REMOVE
FINDID.i_memory_spelleffect_cunning.REMOVE
FINDID.i_memory_spelleffect_strength.REMOVE
FINDID.i_memory_spelleffect_feeblemind.REMOVE
FINDID.i_memory_spelleffect_clumsy.REMOVE
FINDID.i_memory_spelleffect_weaken.REMOVE
FINDID.i_memory_spelleffect_bless.REMOVE
FINDID.i_memory_spelleffect_curse.REMOVE
FINDID.i_memory_spelleffect_chameleon.REMOVE
FINDID.i_memory_spelleffect_regeneration.REMOVE
IF !( <SRC.FLAGS> & statf_conjured )
    VAR.EXP=<EVAL <EVAL <SRC.SKILLTOTAL> /10> +<EVAL <SRC.OSTR> +<SRC.ODEX> +<SRC.OINT>> +<EVAL <SRC.MAXHITS> +-<SRC.OSTR>>>
    VAR.EXP_TEMP1=<EVAL <EVAL <VAR.EXP> *<EVAL <SRC.ARMOR> +<EVAL <SRC.AR> +-<SRC.ARMOR>>>> /1000>
    VAR.EXP_TEMP2=<EVAL <EVAL <VAR.EXP> *<EVAL {<SRC.DAM>}>> /1000>
    VAR.EXP=<EVAL <VAR0.EXP> +<VAR0.EXP_TEMP1> +<VAR0.EXP_TEMP2>>
    IF (<SRC.TAG0.MODEXP>)
        VAR.EXP=<SRC.TAG.MODEXP>
    ENDIF
    IF (<VAR0.EXP> < 1)
        VAR.EXP=1
    ENDIF
    VAR.EXP_TEMP1=
    VAR.EXP_TEMP2=
    SRC.EXPERIENCE
    VAR.EXP=
ENDIF
SRC.ACT=<VAR.OLD_ACT>
VAR.OLD_ACT=
RETURN 0

Thanks everybody !
04-03-2014 07:14 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Experience in group ! - kevin465 - 04-03-2014 07:14 PM
RE: Experience in group ! - Runcuks - 04-03-2014, 11:37 PM
RE: Experience in group ! - kevin465 - 04-04-2014, 02:08 AM
RE: Experience in group ! - Coruja - 04-04-2014, 03:56 AM
RE: Experience in group ! - kevin465 - 04-04-2014, 07:12 AM
RE: Experience in group ! - Coruja - 04-05-2014, 01:07 PM
RE: Experience in group ! - kevin465 - 04-05-2014, 07:07 PM
RE: Experience in group ! - kevin465 - 04-06-2014, 02:08 AM
RE: Experience in group ! - Coruja - 04-07-2014, 04:49 AM

Forum Jump:


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