Jezu Posted October 26, 2012 Group: Members Topic Count: 29 Topics Per Day: 0.01 Content Count: 566 Reputation: 34 Joined: 11/17/11 Last Seen: January 24 Share Posted October 26, 2012 (edited) Hi rA community, I want to request something like this, a Halloween event or Xmas Event like this. 1. Character will do a quest by talking to "Halloween NPC" and then he will be ask to kill like 2000 ghouls. 2. After killing this number of monsters, the character must talk to Halloween NPC and he/she will get a global reg value which is set #Halloween,1; 3. There will be an NPC for "Rewards" NPC that check if the character have this global reg value before giving the rewards. if {#Halloween == 1} like this.... and s/he will get another global reg value of set #Halloween_End,1; so it will not be repeated getting the rewards again and again. 4. He will get a gift after finishing this quest. This event is account-based so it will not be repeated by any character with the same account. For Xmas, it will be christmas goblins or something but same mechanics on halloween event. Thanks in advance guys! Hope there is someone can lend a hand. Edited October 26, 2012 by Jezu Quote Link to comment Share on other sites More sharing options...
Euphy Posted October 26, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted October 26, 2012 You've already got most of the script down. You could count monster kills either through OnNPCKillEvent or a quest entry, it's your choice. You don't need 2 variables, as you can set #Halloween to "2" when finished. Quote Link to comment Share on other sites More sharing options...
Jezu Posted October 27, 2012 Group: Members Topic Count: 29 Topics Per Day: 0.01 Content Count: 566 Reputation: 34 Joined: 11/17/11 Last Seen: January 24 Author Share Posted October 27, 2012 (edited) You've already got most of the script down. You could count monster kills either through OnNPCKillEvent or a quest entry, it's your choice. You don't need 2 variables, as you can set #Halloween to "2" when finished. I only know the variables but I can't produce a script like this xD. Can you give me one sample script Mr. @Euphy ? Edited October 27, 2012 by Jezu Quote Link to comment Share on other sites More sharing options...
Euphy Posted October 27, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted October 27, 2012 { mes "[Halloween Event]"; if (!#Halloween) { mes "Do you want to take part in the Halloween event?"; mes "You can do this once per account, so choose wisely."; next; if (select("Yes!:No, not now.") == 2) { mes "[Halloween Event]"; mes "See you around."; close; } mes "[Halloween Event]"; mes "I'll need you to hunt 2,000 Ghouls."; mes "It's urgent, so please return quickly!"; mes "There is a reward, of course."; set #Halloween,1; set Halloween,0; close; } else if (#Halloween == 1) { if (Halloween == 2000) { mes "Wow! You've done it!"; mes "Here's your prize."; //getitem ID,Amount; set #Halloween,2; set Halloween,0; close; } mes ((Halloween)?"You've killed "+Halloween+" Ghouls so far.":"You haven't killed any Ghouls yet!"); mes "Come back when you've hunted 2,000."; close; } else if (#Halloween == 2) { mes "Happy Halloween!"; close; } OnNPCKillEvent: if (#Halloween == 1 && killedrid == 1036 && Halloween < 2000) { set Halloween, Halloween+1; dispbottom "[Halloween Event] "+Halloween+" Ghouls killed!"; } end; } Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted October 27, 2012 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted October 27, 2012 https://rathena.svn....t_variables.txt I believe its better to use bits to set the quest completed or not or you can try keyworld's setbit function ... (lol I think I'm going too far) Quote Link to comment Share on other sites More sharing options...
Euphy Posted October 27, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted October 27, 2012 Annie: It only requires one variable, and there isn't anything existing we can use for an account-based quest. O: Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 27, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 27, 2012 (edited) @Jezu you can try this if you want... http://pastebin.com/raw.php?i=LnfA35rF Only edit this part... OnInit: // Variable Name set .VariableName$,"#Halloween"; // Required Monster ID + Amount setarray .MobDB[0],1002,2000; // Reward Item + Amount setarray .ItemDB[0],607,100; end; doesnt support multiple item / monsters... i havent test the script yet ~ maded 10 hours ago...but damn...cant connect to internet... Edited October 27, 2012 by Emistry 1 Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted October 27, 2012 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted October 27, 2012 (edited) as you can set #Halloween to "2" when finished.what I mean is this prontera,156,184,5 script quest 100,{ if ( #misc_quest & 1 ) { mes "happy halloween"; halloween = #halloween = 0; // remember to reset them to 0 or else just wasting variable space close; } else if ( #halloween ) { if ( halloween == 10 ) { mes "you just complete this quest"; halloween = #halloween = 0; #misc_quest |= 1; // <-- THIS LINE } else if ( halloween ) mes "you have killed "+ halloween +" ghouls"; else mes "you have to kill 2000 ghouls"; close; } mes "happy halloween event"; select "take quest"; #halloween = 1; mes "you have to kill 2000 ghouls"; close; OnNPCKillEvent: if ( killedrid == 1036 && #halloween && halloween < 10 ) dispbottom "[Halloween Event] "+ halloween++ +" Ghouls killed!"; end; } LMAO !!! I've been 4 years since I last written a quest script !!! LOL I seem to get off touch writing this simple script rofl @Emistry omg, you script there start to looks like my mission board script as I'm using that same technique in that script now I mention about mission board, I do have that 'Can do: Only once' setting in that script ... hmm .... Edited October 27, 2012 by AnnieRuru 1 Quote Link to comment Share on other sites More sharing options...
Checkmate Posted October 3, 2013 Group: Members Topic Count: 96 Topics Per Day: 0.02 Content Count: 554 Reputation: 14 Joined: 09/24/12 Last Seen: November 20, 2024 Share Posted October 3, 2013 @Jezuyou can try this if you want... http://pastebin.com/raw.php?i=LnfA35rF Only edit this part... OnInit:// Variable Name set .VariableName$,"#Halloween"; // Required Monster ID + Amount setarray .MobDB[0],1002,2000; // Reward Item + Amount setarray .ItemDB[0],607,100; end; doesnt support multiple item / monsters...i havent test the script yet ~ maded 10 hours ago...but damn...cant connect to internet... Sir...Emistry,,, I trying your script and found some error.. all was working properly but... my char stuck when done talking to both npc... Quote Link to comment Share on other sites More sharing options...
Question
Jezu
Hi rA community,
I want to request something like this, a Halloween event or Xmas Event like this.
1. Character will do a quest by talking to "Halloween NPC" and then he will be ask to kill like 2000 ghouls.
2. After killing this number of monsters, the character must talk to Halloween NPC and he/she will get a global reg value which is
3. There will be an NPC for "Rewards" NPC that check if the character have this global reg value before giving the rewards.
like this.... and s/he will get another global reg value of
so it will not be repeated getting the rewards again and again.
4. He will get a gift after finishing this quest. This event is account-based so it will not be repeated by any character with the same account.
For Xmas, it will be christmas goblins or something but same mechanics on halloween event.
Thanks in advance guys! Hope there is someone can lend a hand.
Edited by JezuLink to comment
Share on other sites
8 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.