NeoGenesis Posted April 23, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 120 Reputation: 0 Joined: 01/03/12 Last Seen: August 26, 2017 Share Posted April 23, 2012 (edited) prontera,158,188,4 script Emperium Ladder 808,{ cutin "dpvp",2; mes "[^FF0000Top5 Emperium Ladder^000000]"; mes "Top 1: ^0000FF" +$top1emp$ +"^000000 With: ^FF0000" +$top1emp +"^000000 Emperium Breaks."; mes "Top 2: ^0000FF" +$top2emp$ +"^000000 With: ^FF0000" +$top2emp +"^000000 Emperium Breaks."; mes "Top 3: ^0000FF" +$top3emp$ +"^000000 With: ^FF0000" +$top3emp +"^000000 Emperium Breaks."; mes "Top 4: ^0000FF" +$top4emp$ +"^000000 With: ^FF0000" +$top4emp +"^000000 Emperium Breaks."; mes "Top 5: ^0000FF" +$top5emp$ +"^000000 With: ^FF0000" +$top5emp +"^000000 Emperium Breaks."; close2; cutin "",255; end; } // End Script function script EmpeLadder { set @emptotal, getarg(0); set @nomb$, getarg(1); if (@emptotal > $top1emp) { if ($top1emp$ == strcharinfo(0)) { set $top1emp, @emptotal; set $top1emp$, @nomb$; } else { set @aux, $top1emp; set @aux$, $top1emp$; set $top1emp, @emptotal; set $top1emp$, @nomb$; set $top2emp, @aux; set $top2emp$, @aux$; } // End if } else if (@emptotal > $top2emp) { if ($top2emp$ == strcharinfo(0)) { set $top2emp, @emptotal; set $nomb2, @nomb$; } else { set @aux, $top2emp; set @aux$, $top2emp$; set $top2emp, @emptotal; set $top2emp$, @nomb$; set $top3emp, @aux; set $top3emp$, @aux$; } // End if } else if (@emptotal > $top3emp) { if ($top3emp$ == strcharinfo(0)) { set $top3emp, @emptotal; set $top3emp$, @nomb$; } else { set @aux, $top3emp; set @aux$, $top3emp$; set $top3emp, @emptotal; set $top3emp$, @nomb$; set $top4emp, @aux; set $top4emp$, @aux$; } // End if } else if (@emptotal > $top4emp) { if ($top4emp$ == strcharinfo(0)) { set $top4emp, @emptotal; set $top4emp$, @nomb$; } else { set @aux, $top4emp; set @aux$, $top4emp$; set $top4emp, @emptotal; set $top4emp$, @nomb$; set $top5emp, @aux; set $top5emp$, @aux$; } // End if } else if (@emptotal > $top5emp) { if ($top5emp$ == strcharinfo(0)) { set $top5emp, @emptotal; set $nomb5, @nomb$; } else { set $top5emp, @emptotal; set $top5emp$, @nomb$; } // End if Cancel: close2; cutin "",255; end; } // End if return; } // End function this script only detect at castle @agitstart but @agitstart2 not detect .. how to set this to detect @agitstart2 castle to? Edited April 23, 2012 by NeoGenesis Quote Link to comment Share on other sites More sharing options...
Emistry Posted May 1, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2371 Joined: 10/28/11 Last Seen: Saturday at 07:13 PM Share Posted May 1, 2012 i guess there should have something like callfunc "EmpeLadder",...... although i not really sure where you put this ....but i think it should be the place where it triggered by the OnAgitBreak or etc Label. if what i saying is right...then you have to put that line in all the files in npc/guild2/ so that WOE SE will be included in your ladder Quote Link to comment Share on other sites More sharing options...
NeoGenesis Posted May 9, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 120 Reputation: 0 Joined: 01/03/12 Last Seen: August 26, 2017 Author Share Posted May 9, 2012 can give example where to wan put that callfunc "EmpeLadder",......?? Quote Link to comment Share on other sites More sharing options...
Emistry Posted May 9, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2371 Joined: 10/28/11 Last Seen: Saturday at 07:13 PM Share Posted May 9, 2012 LOL.. dunno ... =='' you should be the one who know about this since you post this script... we dunno how the creator try to save the record ..as it is harder to track and view through the txt record..>.< and since you said it detected agitstart but not agitstart2... so you must have do extra stuff before .... double check your work and show us.. Quote Link to comment Share on other sites More sharing options...
Question
NeoGenesis
prontera,158,188,4 script Emperium Ladder 808,{
cutin "dpvp",2;
mes "[^FF0000Top5 Emperium Ladder^000000]";
mes "Top 1: ^0000FF" +$top1emp$ +"^000000 With: ^FF0000" +$top1emp +"^000000 Emperium Breaks.";
mes "Top 2: ^0000FF" +$top2emp$ +"^000000 With: ^FF0000" +$top2emp +"^000000 Emperium Breaks.";
mes "Top 3: ^0000FF" +$top3emp$ +"^000000 With: ^FF0000" +$top3emp +"^000000 Emperium Breaks.";
mes "Top 4: ^0000FF" +$top4emp$ +"^000000 With: ^FF0000" +$top4emp +"^000000 Emperium Breaks.";
mes "Top 5: ^0000FF" +$top5emp$ +"^000000 With: ^FF0000" +$top5emp +"^000000 Emperium Breaks.";
close2;
cutin "",255;
end;
} // End Script
function script EmpeLadder {
set @emptotal, getarg(0);
set @nomb$, getarg(1);
if (@emptotal > $top1emp) {
if ($top1emp$ == strcharinfo(0)) {
set $top1emp, @emptotal;
set $top1emp$, @nomb$;
} else {
set @aux, $top1emp;
set @aux$, $top1emp$;
set $top1emp, @emptotal;
set $top1emp$, @nomb$;
set $top2emp, @aux;
set $top2emp$, @aux$;
} // End if
} else if (@emptotal > $top2emp) {
if ($top2emp$ == strcharinfo(0)) {
set $top2emp, @emptotal;
set $nomb2, @nomb$;
} else {
set @aux, $top2emp;
set @aux$, $top2emp$;
set $top2emp, @emptotal;
set $top2emp$, @nomb$;
set $top3emp, @aux;
set $top3emp$, @aux$;
} // End if
} else if (@emptotal > $top3emp) {
if ($top3emp$ == strcharinfo(0)) {
set $top3emp, @emptotal;
set $top3emp$, @nomb$;
} else {
set @aux, $top3emp;
set @aux$, $top3emp$;
set $top3emp, @emptotal;
set $top3emp$, @nomb$;
set $top4emp, @aux;
set $top4emp$, @aux$;
} // End if
} else if (@emptotal > $top4emp) {
if ($top4emp$ == strcharinfo(0)) {
set $top4emp, @emptotal;
set $top4emp$, @nomb$;
} else {
set @aux, $top4emp;
set @aux$, $top4emp$;
set $top4emp, @emptotal;
set $top4emp$, @nomb$;
set $top5emp, @aux;
set $top5emp$, @aux$;
} // End if
} else if (@emptotal > $top5emp) {
if ($top5emp$ == strcharinfo(0)) {
set $top5emp, @emptotal;
set $nomb5, @nomb$;
} else {
set $top5emp, @emptotal;
set $top5emp$, @nomb$;
} // End if
Cancel:
close2;
cutin "",255;
end;
} // End if
return;
} // End function
this script only detect at castle @agitstart but @agitstart2 not detect ..
how to set this to detect @agitstart2 castle to?
Edited by NeoGenesisLink to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.