if I move this topic from source request into script request
then you understand where to put them, right ?
btw, didn't I already said it ... ?
this is npc script, tested
sorry for the stoopid question,, yah,, i think i already got it now,, I checked my server files now, this is the first time i've checked it out,, cause I only modify my DB and src files,, never tried plugins or scripts,,
I'll test it up,, thanks,,,
@
@AnnieRuru is the value permanent ? what happen if player reset status ?
btw I'm not planning on putting a stat reset,, xD
this is npc script, tested
// kill 10 poring gets 1 status point- script kdjshfkshf FAKE_NPC,{OnNPCKillEvent: if ( killedrid == PORING ) { poringkill++; if ( poringkill == 10 ) { StatusPoint++; poringkill = 0; } } end;}or ...
Code:
function script F_ShuffleNumbers { deletearray getarg(2); .@static = getarg(0); .@range = getarg(1) +1 - .@static; .@count = getarg(3, .@range); if (.@range <= 0 || .@count <= 0) return 0; if (.@count > .@range) .@count = .@range; for (.@i = 0; .@i < .@range; ++.@i) .@temparray[.@i] = .@i; for (.@i = 0; .@i < .@count; ++.@i) { .@[member="Rand"] = rand(.@range); set getelementofarray( getarg(2), .@i ), .@temparray[.@[member="Rand"]] + .@static; .@temparray[.@[member="Rand"]] = .@temparray[--.@range]; } return .@count;}// kill 10 poring gets 1 random stats, if the randomly selected stat has reached maximum, then will select another one- script kdjshfkshf FAKE_NPC,{OnNPCKillEvent: if ( killedrid == PORING ) { poringkill++; if ( poringkill >= 10 ) { .@range = callfunc( "F_ShuffleNumbers", 0, 5, .@output ); if ( Class == Job_Kagerou || Class == Job_Oboro || Class == Job_Rebellion || Class == Job_Super_Novice_E ) .@maxstat = getbattleflag("max_extended_parameter"); else if ( eaclass() & EAJL_THIRD && eaclass() & EAJL_BABY ) .@maxstat = getbattleflag("max_baby_third_parameter"); else if ( eaclass() & EAJL_THIRD ) .@maxstat = getbattleflag("max_third_parameter"); else if ( eaclass() & EAJL_BABY ) .@maxstat = getbattleflag("max_baby_parameter"); else .@maxstat = getbattleflag("max_parameter"); while ( readparam( .@output[.@i] + bStr ) >= .@maxstat && .@i < 6 ) .@i++; if ( .@i < 6 ) statusup2 .@output[.@i] + bStr, 1; poringkill = 0; } } end;}
erm ... I think I have complicated the topic abit ...
already tested it out annie,,
comments,,
i activated both of them up,,
when I loaded the server,, got a notification that there's a same name in the NPC,, both of these two,, so i disregarded it out first,,
I tested it out using a new novice,, well after killed 10porings,, poof!! it gave 1 statpoint,, but there's no random stat,,
then later on, it seems it was randomized after the 10kills,,i think around 15th or 16th kill it gave another 1 statpoint,,
after around the 4th stat point,, still not getting the random stats,,
so I tried to do it on another class,, Runeknight,, i removed stats and stat points,,
same thing happened,, no random stats,,
So I edited the 2nd script I added "2" on the name,, then reloaded the server,, no notifiaction or anything this time,,
I tested it out on the RK again,, this time,, the random stat worked after the 10th poring,, then seems random again afterwards,,
then tested also on the novice it worked also,,
so my question now are:
*will it be possible for both of them to work??
*how to have a set of monsters for this to kick in,, instead of copying this per monster,,
* for the 1st script, would it be possible to put level requirements?? like this would only kick in if the monster is within 10level difference,,
*for the 1st script,, to work on ALL monsters??
*for second script,, how to remove the random stat?? like give str stat for set of monsters,,
* for the 2nd script,, would it be possible to put stat limitation other than "max parameter"?? like for example,, would only get stats from set of monsters until stat reached 20,,
thanks a LOT!!!! good script really,,