Issue information

Issue ID
#2829
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Mar 4, 2009 17:16
Last Post
Hercules Elf Bot
Mar 5, 2012 9:49
Confirmation
N/A

Hercules Elf Bot - Mar 4, 2009 17:16

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

The OnInit on the Turbo Track NPCs should be moved to the bottom of them should have a end; above them, otherwise if someone click on the NPC instead of the chatroom, it triggers an "error" on map-server's console because it can't creat a new Waitin Room since one is already available. Example: On \npc\other\turbotrack\Expert_4.txt

Old code:

CODE
turbo_room,110,135,3    script    Expert mode - 4 person    124,{
OnInit:
    waitingroom "Expert mode - 4 person",60,"Expert mode - 4 person::OnStartArena",4;
    //SetFeeZeny 1000
    enablewaitingroomevent "Expert mode - 4 person";
    end;

OnEnable:
    enablenpc "Expert mode - 4 person";
    enablewaitingroomevent "Expert mode - 4 person";
    end;

OnStartArena:
    warpwaitingpc "turbo_e_4",298,161;
    donpcevent "Broadcast#e4::OnEnable";
    disablewaitingroomevent "Expert mode - 4 person";
    end;
}


New code:

CODE
turbo_room,110,135,3    script    Expert mode - 4 person    124,{
    end;

OnInit:
    waitingroom "Expert mode - 4 person",60,"Expert mode - 4 person::OnStartArena",4;
    //SetFeeZeny 1000
    enablewaitingroomevent "Expert mode - 4 person";
    end;

OnEnable:
    enablenpc "Expert mode - 4 person";
    enablewaitingroomevent "Expert mode - 4 person";
    end;

OnStartArena:
    warpwaitingpc "turbo_e_4",298,161;
    donpcevent "Broadcast#e4::OnEnable";
    disablewaitingroomevent "Expert mode - 4 person";
    end;

}


This post has been edited by timexy: Mar 4 2009, 09:21 AM