Joe Loop
Apprentice
Posts: 23
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Dec 2012
Reputation: 0
|
Share exp with party
Hi there i have made this script:
ON=@DEATH
sound=1110
sound=1237
src.act.sysmessage @00787 You have 20sec. to "claim" quest loot.
serv.newitem=i_quest_shrine
new.name Corpse of: <name>
new.drop
updatex
IF (<src.maxhits>>100000)
IF (<ATTACKER> > 0)
FOR x 0 <EVAL <ATTACKER>-1>
REF99=<ATTACKER.<LOCAL.X>> //REF99 is a reference to an attacker
REF99.SAYUA 0a0a,2,0,eng,-Did <ATTACKER.<EVAL <LOCAL.X>>.DAM> dmg-
IF (<REF99.FLAGS> & statf_pet)
REF99.say i have <ref99.hits> life left
REF99.tag0.petexp +=20
REF99.update 1
ENDIF
REF99.TAG0.WorldRep += 1000
REF99.sysmessage @051e You have gained an unbeliveable huge amount of world reputation....pretty epic: +1000
ENDFOR
REF100=<ATTACKER.MAX>
REF100.TAG0.WorldRep += 350
REF99.NEWITEM={ i_bottle_ichor 2 i_powdered_iron 2 i_relic_fragment 4 i_magical_residue 5 i_crushed_glass 7 i_potion_heal 1 },{5 10}
NEW.bounce
REF100.sysmessage @051e Most damage dealt bonus, additional world reputation: +350
ENDIF
ELSE
IF (<src.maxhits>>12000)
IF (<ATTACKER> > 0)
FOR x 0 <EVAL <ATTACKER>-1>
REF99=<ATTACKER.<LOCAL.X>> //REF99 is a reference to an attacker
REF99.SAYUA 0a0a,2,0,eng,-Did <ATTACKER.<EVAL <LOCAL.X>>.DAM> dmg-
IF (<REF99.FLAGS> & statf_pet)
REF99.say i have <ref99.hits> life left
REF99.tag0.petexp +=1
REF99.update 1
ENDIF
REF99.TAG0.WorldRep += 350
REF99.sysmessage @051e You have gained a huge amount of world reputation +350
ENDFOR
REF100=<ATTACKER.MAX>
REF100.TAG0.WorldRep += 150
REF99.NEWITEM={ i_bottle_ichor 2 i_powdered_iron 2 i_relic_fragment 4 i_magical_residue 5 i_crushed_glass 6 i_potion_heal 1 },{2 10}
NEW.bounce
REF100.sysmessage @051e Most damage dealt bonus, additional world reputation: +150
ENDIF
ELSE
and so on and so on all the way down to 1 hp....
Question is, how do i add a "world rep/exp" bonus to party members, eventhou they havent reallt done any dmg? i would really like that...
And also please correct the script if its wrong in any way.
(This post was last modified: 12-22-2012 09:06 AM by Joe Loop.)
|
|
12-22-2012 09:04 AM |
|
|