Hey, i try a little bit scripting and make some quests.
the last quest my admin say the kill doesnt work, can anyone explain what is wrong.
here is the npc script that i write.
alberta,167,177,3 script Simon 10079,{
set .@npcname$, "^FF0000[Simon]^000000";
if(storage_password==0) goto quest0;
if(storage_password==1) goto quest1;
if(storage_password==2) goto quest2;
if(storage_password==3) goto quest3;
if(storage_password==4) goto quest4;
quest0:
mes .@npcname$;
mes "blabla";
close;
quest1:
mes .@npcname$;
mes "Toete bitte je 500 Snake, Wormtail und Willows fuer mich.";
set storage_password,2;
close;
quest2:
mes .@npcname$;
mes "Geh bitte die 500 Snake, Wormtail und Willows toeten.";
close;
OnNPCKillEvent:
if (storage_password == 2) {
if (killedrid == 1025) { //Snake
set kill_count_variable, kill_count_variable+1;
if (kill_count_variable == 500)
}
}
if (storage_password == 2) {
if (killedrid == 1010) { //Willow
set kill_count_variable, kill_count_variable+1;
if (kill_count_variable == 500)
}
}
if (storage_password == 2) {
if (killedrid == 1024) { //Worm Tail
set kill_count_variable, kill_count_variable+1;
if (kill_count_variable == 500)
}
}
set storage_password,3;
end;
quest3:
mes .@npcname$;
mes "blabla";
set storage_password,4;
close;
quest4:
mes .@npcname$;
mes "blabla";
close;
}
and can i make monster kills quest, so kill 50.000 monster of your choice with an timer.
Question
Teraxes
Hey, i try a little bit scripting and make some quests.
the last quest my admin say the kill doesnt work, can anyone explain what is wrong.
here is the npc script that i write.
alberta,167,177,3 script Simon 10079,{ set .@npcname$, "^FF0000[Simon]^000000"; if(storage_password==0) goto quest0; if(storage_password==1) goto quest1; if(storage_password==2) goto quest2; if(storage_password==3) goto quest3; if(storage_password==4) goto quest4; quest0: mes .@npcname$; mes "blabla"; close; quest1: mes .@npcname$; mes "Toete bitte je 500 Snake, Wormtail und Willows fuer mich."; set storage_password,2; close; quest2: mes .@npcname$; mes "Geh bitte die 500 Snake, Wormtail und Willows toeten."; close; OnNPCKillEvent: if (storage_password == 2) { if (killedrid == 1025) { //Snake set kill_count_variable, kill_count_variable+1; if (kill_count_variable == 500) } } if (storage_password == 2) { if (killedrid == 1010) { //Willow set kill_count_variable, kill_count_variable+1; if (kill_count_variable == 500) } } if (storage_password == 2) { if (killedrid == 1024) { //Worm Tail set kill_count_variable, kill_count_variable+1; if (kill_count_variable == 500) } } set storage_password,3; end; quest3: mes .@npcname$; mes "blabla"; set storage_password,4; close; quest4: mes .@npcname$; mes "blabla"; close; }
and can i make monster kills quest, so kill 50.000 monster of your choice with an timer.
Thx
Link to comment
Share on other sites
2 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.