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
Experience in group !
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #4
RE: Experience in group !
Code:
WHILE (<ATTACKER.<LOCAL._WHILE>>)
  REF1=<ATTACKER.<LOCAL._WHILE>>
  REF1.Experience <eval <VAR0.EXP>/<ATTACKER>>  //this will divide the exp to each attacker instead give the full exp to everyone
ENDWHILE

btw you can optimize this code
Code:
ON=@Death
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 (<FLAGS> & statf_conjured)
  return 0
ENDIF
LOCAL.ExpBase = <eval (<SKILLTOTAL>/10)+(<OSTR>+<ODEX>+<OINT>)+(<MAXHITS>-<OSTR>)>
LOCAL.Exp = <LOCAL.ExpBase>
LOCAL.Exp += <eval (<LOCAL.ExpBase>*(<ARMOR>+(<AR>-<ARMOR>)))/1000>
LOCAL.Exp += <eval (<LOCAL.ExpBase>*{<DAM>})/1000>
IF (<TAG0.MODEXP>)
  LOCAL.Exp = <TAG0.MODEXP>
ENDIF
IF (<LOCAL.Exp> < 1)
  LOCAL.Exp = 1
ENDIF
WHILE (<ATTACKER.<LOCAL._WHILE>>)
  REF1=<ATTACKER.<LOCAL._WHILE>>
  REF1.ExpIncrease <eval <LOCAL.Exp>/<ATTACKER>>
ENDWHILE
you can optimize a bit more, I just leave it this way because it's better to you undestand the code
(This post was last modified: 04-04-2014 04:35 AM by Coruja.)
04-04-2014 03:56 AM
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: 3 Guest(s)