Issue information

Issue ID
#3600
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Sep 17, 2009 1:34
Last Post
Hercules Elf Bot
Mar 5, 2012 15:49
Confirmation
N/A

Hercules Elf Bot - Sep 17, 2009 1:34

Originally posted by [b]NoH[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=3600

The variables quiz1, quiz2, quiz3, quiz4, quiz5, recording the number of participants in the 5 races, should be server variables ($quiz1, etc), not player variables, for obvious reasons.

The races have yet to be added so it's not a big deal, but at the moment this script sets useless player vars, and doesn't record the number of participants.

EDIT - The code involved is:

1) The list of the participants given by the NPCs in 2 places:

CODE
        mes "1st Quiz Revolution - " + quiz1 + "/200";
        mes "2nd Quiz Revolution - " + quiz2 + "/200";
        mes "3rd Quiz Revolution - " + quiz3 + "/200";
        mes "4th Quiz Revolution - " + quiz4 + "/200";
        mes "5th Quiz Revolution - " + quiz5 + "/200";


2) The check and the increment of the count when a player wants to register:

QUOTE
if(quiz1 > 199){
mes "[Kantryl]";
mes "I'm sorry. We are all full at";
mes "1st round of quiz revolution";
mes "No more applicants for 1st round.";
close;

}
mes "[Kantryl]";
mes "Hm..."+ strcharinfo(0)+" ";
mes "I have received your application";
mes "Try hard and study hard.";
set quiz_rvl,19;
set quiz1,quiz1 + 1;
getitem 7280,1; //Quiz_Ticket01
close;


This post has been edited by NoHealing: Sep 17 2009, 10:41 AM

Hercules Elf Bot - Dec 8, 2011 10:57

Originally posted by [b]calciumkid[/b]
Fixed