When you kill the "OnInit" poring in that "MAP", it will activate "OnKill". Which you will get the item 985 for 3. However, if you kill poring in other maps it won't activate OnKill. This script will only works in payon.
The problem with this script is, after you kill the "OnInit" poring, it will not be spawn anymore, therefore no poring. So I was figuring how do you make after killing the "OnInit" poring it will spawn another "OnInit" poring that will activate "OnKill".
I don't think we can add "monster .map$,0,0,"--ja--",1002,1, strnpcinfo(3)+"::OnKill";" this line inside the "OnKill".
Here is my headache while trying to combined both of this script, my idea is when you kill 4 poring, it will spawn 1 mastering in pay_dun00. However I found one problem with the script below while studying the script above.
Script A works good because it activate only within the map. However for SCRIPT B, it activate world wide. You can kill 4 porings at anywhere and it will spawn mastering in pay_dun00.
SCRIPT B
Quote
- script Mastering -1,{
OnInit:
set .bspawn.0; //Where the kills will be saved(don't change)
set .bneed.4; //Kills needed
set .bossid.1090; //Boss ID
set .minibossid.1002; //Mini Boss ID
set .reward.512; //Reward for killing the Boss
set .map$."pay_dun00"; //Name of the map you kill mini bosses
end;
OnNPCKillEvent:
if (mobcount-(.map$, strnpcinfo(0)+"::OnBossKill"))
end;
if (killedrid == .minibossid){
set ,bspawn,.bspawn +1;
if (.bspawn >= .bneed){
mapannounce .map$,"The map boss has appeared!",0;
monster "pay_dun00", 0. 0. "Mastering", .bossid, 1, strnpcinfo(0) "::OnBossKill";
//monster .map$,0.0,0.0,"Mastering",,bossid,1,"BOSSSPAWN::OnBossKill";
set .bspawn, 0;
}
}
end;
OnBossKill:
mapannounce .map$. "The player "+strcharinfo(0)+" has killed the boss!". bc_map;
//mapannounce .map$,"The map boss has appearedasdasd!".0,
getitem (.reward,1);
end;
}
Question :
- How can I add in SCRIPT B that if you kill 4 poring it will spawn 1 mastering. And that 4 poring has to be located only in pay_dun00 only. Not anywhere else. Also the poring doesn't runs out.
Question
cmsm94
Hi Guys,
Sorry for bothering again.
Please note how script A works as below.
When you kill the "OnInit" poring in that "MAP", it will activate "OnKill". Which you will get the item 985 for 3. However, if you kill poring in other maps it won't activate OnKill. This script will only works in payon.
The problem with this script is, after you kill the "OnInit" poring, it will not be spawn anymore, therefore no poring. So I was figuring how do you make after killing the "OnInit" poring it will spawn another "OnInit" poring that will activate "OnKill".
I don't think we can add "monster .map$,0,0,"--ja--",1002,1, strnpcinfo(3)+"::OnKill";" this line inside the "OnKill".
SCRIPT A
Here is my headache while trying to combined both of this script, my idea is when you kill 4 poring, it will spawn 1 mastering in pay_dun00. However I found one problem with the script below while studying the script above.
Script A works good because it activate only within the map. However for SCRIPT B, it activate world wide. You can kill 4 porings at anywhere and it will spawn mastering in pay_dun00.
SCRIPT B
Question :
- How can I add in SCRIPT B that if you kill 4 poring it will spawn 1 mastering. And that 4 poring has to be located only in pay_dun00 only. Not anywhere else. Also the poring doesn't runs out.
Thank you guys!
Edited by cmsm94Link to comment
Share on other sites
6 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.