Kinx Posted November 2, 2017 Group: Members Topic Count: 23 Topics Per Day: 0.01 Content Count: 106 Reputation: 30 Joined: 04/03/17 Last Seen: October 10, 2022 Share Posted November 2, 2017 the announce is not working properly, i kill 10 Vitata or 5 Familiar and she is coming, but she shall not come until I have killed all. OnNPCKillEvent: if(anthell) end; if(killedrid == 1176 && VitataKills < 10) // = Vitata { set VitataKills,VitataKills + 1; dispbottom "You killed "+VitataKills+"/10 Vitata."; if(VitataKills >= 10) dispbottom "You have killed all Vitatas."; } else if (killedrid == 1097 && AntEggKills < 55) // = Ant Egg { set AntEggKills,AntEggKills + 1; dispbottom "You killed "+AntEggKills+"/55 AntEgg."; if(AntEggKills >= 55) dispbottom "You have killed all AntEggs."; }else if (killedrid == 1005 && FamiliarKills < 5) // = Familiar { set FamiliarKills,FamiliarKills + 1; dispbottom "You killed "+FamiliarKills+"/5 Familiar."; if(FamiliarKills >= 5) dispbottom "You have killed all Familiars."; } else if(anthell == 0) { announce " You have killed every Monster. Come back to me to !",bc_self; set anthell,1; } end; } Quote Link to comment Share on other sites More sharing options...
0 Cydh Posted November 3, 2017 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 747 Joined: 06/16/12 Last Seen: February 21 Share Posted November 3, 2017 imho, I don't like this script. better you use quest_db and add monster's objectives OnNPCKillEvent: if(anthell) end; if(killedrid == 1176) // = Vitata { set VitataKills,VitataKills + 1; if (VitataKills < 10) { dispbottom "You killed "+VitataKills+"/10 Vitata."; } else if(VitataKills == 10) { dispbottom "You have killed all Vitatas."; } } else if (killedrid == 1097) // = Ant Egg { set AntEggKills,AntEggKills + 1; if (AntEggKills < 55) { dispbottom "You killed "+AntEggKills+"/55 AntEgg."; } else if(AntEggKills == 55) { dispbottom "You have killed all AntEggs."; } } else if (killedrid == 1005) // = Familiar { set FamiliarKills,FamiliarKills + 1; if (FamiliarKills < 5) { dispbottom "You killed "+FamiliarKills+"/5 Familiar."; } else if(FamiliarKills == 5) { dispbottom "You have killed all Familiars."; } } if(anthell == 0 && FamiliarKills >= 5 && AntEggKills >= 55 && VitataKills >= 10) { announce " You have killed every Monster. Come back to me to !",bc_self; set anthell,1; } end; Quote Link to comment Share on other sites More sharing options...
0 Skorm Posted November 3, 2017 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: Sunday at 10:43 PM Share Posted November 3, 2017 7 hours ago, Kinx said: the announce is not working properly, i kill 10 Vitata or 5 Familiar and she is coming, but she shall not come until I have killed all. I agree with @Cydh only use OnNPCKillEvent: when you absolutely have to. Since it's going to trigger every time a mob gets killed in your server ever... Quote Link to comment Share on other sites More sharing options...
0 Kinx Posted November 3, 2017 Group: Members Topic Count: 23 Topics Per Day: 0.01 Content Count: 106 Reputation: 30 Joined: 04/03/17 Last Seen: October 10, 2022 Author Share Posted November 3, 2017 how do you use the quest_db? Quote Link to comment Share on other sites More sharing options...
Question
Kinx
the announce is not working properly, i kill 10 Vitata or 5 Familiar and she is coming, but she shall not come until I have killed all.
OnNPCKillEvent: if(anthell) end; if(killedrid == 1176 && VitataKills < 10) // = Vitata { set VitataKills,VitataKills + 1; dispbottom "You killed "+VitataKills+"/10 Vitata."; if(VitataKills >= 10) dispbottom "You have killed all Vitatas."; } else if (killedrid == 1097 && AntEggKills < 55) // = Ant Egg { set AntEggKills,AntEggKills + 1; dispbottom "You killed "+AntEggKills+"/55 AntEgg."; if(AntEggKills >= 55) dispbottom "You have killed all AntEggs."; }else if (killedrid == 1005 && FamiliarKills < 5) // = Familiar { set FamiliarKills,FamiliarKills + 1; dispbottom "You killed "+FamiliarKills+"/5 Familiar."; if(FamiliarKills >= 5) dispbottom "You have killed all Familiars."; } else if(anthell == 0) { announce " You have killed every Monster. Come back to me to !",bc_self; set anthell,1; } end; }
Link 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.