Jump to content

boonpal2

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by boonpal2

  1. 17 hours ago, WhiteEagle said:

    You can work with OnNPCKillEvent: and strcharinfo(3).
     

    
    OnInit:
    	setarray .map$,"prt_fild04","prt_fild05";
    	end;
    OnNPCKillEvent:
    for (.@i = 0; .@i < getarraysize(.map$); .@i++)
    if (strcharinfo(3) == .map$ ) {
    	set .@mob_base,((getmonsterinfo(killedrid,MOB_BASEEXP) / 100) * YOURBONUS);
    	set .@mob_job,((getmonsterinfo(killedrid,MOB_JOBEXP) / 100) * YOURBONUS);
    	set BaseExp,(BaseExp + .@mob_base);
    	set JobExp,(JobExp + .@mob_job);
    	end;
    }
    	end;

    Didn't test it, but like this should it work.

     

    Thanks ! but does the / in this line 

    set .@mob_base,((getmonsterinfo(killedrid,MOB_BASEEXP) / 100) * YOURBONUS);

    mean base xp from that mob divided by 100 and then times  my bonus

    so should the input be 1.2

    set .@mob_base,((getmonsterinfo(killedrid,MOB_BASEEXP) / 100) * 1.2);

    or times 20 to increase 20 percents like

    set .@mob_base,((getmonsterinfo(killedrid,MOB_BASEEXP) / 100) * 20);

    anyhow, thanks so much, i appreciate your help !!

  2. Hello guys, 

    I have just recently started to learn about scripting  and editing my offline server, so. Let's get to the point

    is there anyway i can make an equipment that would give, let's say, 4% str or if refined 7 or more would give 5% str based on base str 

    Thank you for your help,

    Have a good day !

×
×
  • Create New...