Share exp with party - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Share exp with party (/Thread-Share-exp-with-party) |
Share exp with party - Joe Loop - 12-22-2012 09:04 AM 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. RE: Share exp with party - RanXerox - 12-22-2012 09:34 AM This one only rewards them if they are in the same region... Code: ...snip... RE: Share exp with party - Joe Loop - 12-22-2012 07:07 PM Thanks a lot, i very much like the "...snips..."'s But yeah its perfect and works like a charm |