Jump to content
  • 0

Menu Support D:


iFoxkun

Question


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  189
  • Reputation:   16
  • Joined:  11/20/11
  • Last Seen:  

I have everything set up, but the menu doesn't show up;


prontera,161,179,3 script Events 793,{
if(getgmlevel() < 1 ) end;
mes "Hello there GM " + strcharinfo(0) + " !";
next;
set .menu$, select(.gm_menu$);
switch(.menu$) {
case 1: // Question & Answer
next;
mes "I will now create warps, announce, & warp you.";
close2;
warp "quiz_02",45,366;
Announce "There will be a 'Question & Answer' Event Held!",bc_all | bc_blue;
sleep2 5000;
Announce "If you want to join, the warp will be open in Prontera. It will be open for 1 minute!",bc_all | bc_blue;
sleep2 1000;
enablenpc "quizevent";
initnpctimer;
goto L_Timer;
end;
case 2: // Death by Dice
next;
mes "I will now create warps, announce, & warp you.";
close2;
warp "g_room1-1",55,91;
Announce "There will be a 'Death by Dice' Event Held!",bc_all | bc_blue;
sleep2 5000;
Announce "If you want to join, the warp will be open in Prontera. It will be open for 1 minute!",bc_all | bc_blue;
sleep2 1000;
enablenpc "diceevent";
initnpctimer;
goto L_Timer;
end;
case 3: // Bomb Porings?!
next;
mes "I will not create warps, announce, & warp you.";
close2;
warp "g_room1-1",237,270;
Announce "There will be a 'Bomb Porings?!' Event Held!",bc_all | bc_blue;
sleep2 5000;
Announce "If you want to join, the warp will be open in Prontera. It will be open for 1 minute!",bc_all | bc_blue;
sleep2 1000;
enablenpc "bombevent";
initnpctimer;
goto L_Timer;
end;
case 4: // Player vs Monster
next;
mes "I will now create warps, announce, & warp you.";
close2;
warp "quiz_02",337,74;
Announce "There will be a 'Player vs Monster' Event Held!",bc_all | bc_blue;
sleep2 5000;
Announce "If you want to join, the warp will be open in Prontera. It will be open for 1 minute!",bc_all | bc_blue;
sleep2 1000;
enablenpc "pvmevent";
initnpctimer;
goto L_Timer;
end;
case 5: // Party vs Party
next;
mes "I will now create warps, announce, & warp you.";
close2;
warp "06guild_08",50,50;
Announce "There will be a 'Party vs Party' Event Held!",bc_all | bc_blue;
sleep2 5000;
Announce "If you want to join, the warp will be open in Prontera. It will be open for 1 minute!",bc_all | bc_blue;
sleep2 1000;
enablenpc "pvpevent";
initnpctimer;
goto L_Timer;
end;
case 6: // Go Pikachu!
next;
mes "I will now create warps, announce, & warp you.";
close2;
warp "quiz_02",249,365;
Announce "There will be a 'Go Pikachu!' Event Held!",bc_all | bc_blue;
sleep2 5000;
Announce "If you want to join, the warp will be open in Prontera. It will be open for 1 minute!",bc_all | bc_blue;
sleep2 1000;
enablenpc "pikachuevent";
initnpctimer;
goto L_Timer;
end;
case 7: // Tarot?
next;
mes "I will now create warps, announce, & warp you.";
close2;
warp "g_room1-1",230,368;
Announce "There will be a 'Tarot?' Event Held!",bc_all | bc_blue;
sleep2 5000;
Announce "If you want to join, the warp will be open in Prontera. It will be open for 1 minute!",bc_all | bc_blue;
sleep2 1000;
enablenpc "tarotevent";
initnpctimer;
goto L_Timer;
end;
}
L_Timer:
OnTimer00000:
Announce "Timer has started!",bc_all;
end;

OnTimer30000:
Announce "Thirty Seconds Have Passed By!",bc_all;
sleep2 5000;
Announce "Hurry to Prontera if you want to join!",bc_all;
end;

OnTimer40000:
Announce "Twenty seconds left!",bc_all;
end;

OnTimer50000:
Announce "Ten seconds left!",bc_all;
end;

OnTimer55000:
Announce "5!",bc_all;
sleep2 1000;
Announce "4!",bc_all;
sleep2 1000;
Announce "3!",bc_all;
sleep2 1000;
Announce "2!",bc_all;
sleep2 1000;
Announce "1!",bc_all;
sleep2 1000;
Announce "0!",bc_all;
sleep2 1000;
disablenpc "quizevent";
disablenpc "diceevent";
disablenpc "bombevent";
disablenpc "pvmevent";
disablenpc "pvpevent";
disablenpc "pikachuevent";
disablenpc "tarotevent";
stopnpctimer;
end;

OnInit:
setarray .gmevents$,"Question & Answer","Death by Dice","Bomb Porings?!","Player vs Monster!","Party vs Party!","Go Pikachu!","Tarot?";
for ( set .@i, 0; .@i < getarraysize(.gmevents$); set .@i, .@i +1 );
set .gm_menu$, .gm_menu$ + (.gmevents$[.@i]) +":";
disablenpc "quizevent";
disablenpc "diceevent";
disablenpc "bombevent";
disablenpc "pvmevent";
disablenpc "pvpevent";
disablenpc "pikachuevent";
disablenpc "tarotevent";
end;
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// To -> Event Warps
//== Question & Answer
prontera,155,180,0 warp quizevent 2,2,quiz_02,45,366

//== Death by Dice
prontera,155,180,0 warp diceevent 2,2,g_room1-1,55,91

//== Bomb Porings?!
prontera,155,180,0 warp bombevent 2,2,g_room1-1,237,270

//== Player vs Monster
prontera,155,180,0 warp pvmevent 2,2,quiz_02,337,74

//== Party vs Party
prontera,155,180,0 warp pvpevent 2,2,06guild_08,50,50;

//== Go Pikachu!
prontera,155,180,0 warp pikachuevent 2,2,quiz_02,249,371

//== Tarot?
prontera,155,180,0 warp tarotevent 2,2,g_room1-1,230,368


// ~~~~~~~~~~~~~~~~~~~~~~~~~~
// In-Event
//== Question & Answer
// "True"
quiz_02,32,362,0 warp quizeventroom1 1,1,quiz_02,32,357
// "False"
quiz_02,59,362,0 warp quizeventroom2 1,1,quiz_02,59,357

//== Death by Dice
// Number 1~
g_room1-1,37,84,0 warp diceeventroom1 1,1,quiz_02,38,73
// Number 2~
g_room1-1,49,84,0 warp diceeventroom2 1,1,quiz_02,49,73
// Number3~
g_room1-1,61,84,0 warp diceeventroom3 1,1,quiz_02,61,73
// Number 4~
g_room1-1,73,84,0 warp diceeventroom4 1,1,quiz_02,73,73

//== Bomb Poring
// Bomb Spammer
g_room1-1,236,276,4 script Bomb Spammer 793,{

if(getgmlevel() < 1) end;
if(select("Bomb Porings:None") == 2) close;
areamonster "g_room1-1",221,292,233,280,"Bomb Poring",1904,10,"Bomb Spammer::BombKilled";
areamonster "g_room1-1",221,261,233,273,"Bomb Poring",1904,10,"Bomb Spammer::BombKilled";
areamonster "g_room1-1",252,261,240,273,"Bomb Poring",1904,10,"Bomb Spammer::BombKilled";
areamonster "g_room1-1",252,292,240,280,"Bomb Poring",1904,10,"Bomb Spammer::BombKilled";
end;

BombKilled:
warp "prontera",155,180;
end;
}

//== Go Pikachu!
- script Pokemon Field 793,{
OnInit:
setcell "quiz_02",240,367,259,364,cell_walkable,0;
end;
}

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

set .menu, .menu + (.gmevents_menu$)

you didnt close this line with a semi column... ( ; )

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  189
  • Reputation:   16
  • Joined:  11/20/11
  • Last Seen:  

set .menu, .menu + (.gmevents_menu$)

you didnt close this line with a semi column... ( ; )

ASDFGHJKL;

Woah I didn't see that, but now for the menu it shows 1 option "0"

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Ouch..forget to mention that you saved your Menu in Integer..... it is suppose to be a string variables...

set .menu$, .menu$ + (.gmevents_menu$);

your .menu should change to .menu$

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  189
  • Reputation:   16
  • Joined:  11/20/11
  • Last Seen:  

Ouch..forget to mention that you saved your Menu in Integer..... it is suppose to be a string variables...

set .menu$, .menu$ + (.gmevents_menu$);

your .menu should change to .menu$

I updated my script, but still no use. Can't find the problem, i'm trying to use my other script as a reference as well.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

set .menu$, select(.gm_menu$);

switch(.menu$) {

maybe the problems is here ?

try this

switch( select( .gm_menu$ ) ){
Edited by Emistry
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  189
  • Reputation:   16
  • Joined:  11/20/11
  • Last Seen:  

OMFG I FIXED IT D:.

 for ( set .@i, 0; .@i < getarraysize(.gmevents$); set .@i, .@i +1 ); 

had a ";" i removed it. everything showed up. ;_;

set .menu$, select(.gm_menu$);

switch(.menu$) {

maybe the problems is here ?

try this

switch( select( .gm_menu$ ) ){

ionno on my previous script i was told to do that. and it worked o-o

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

sometimes a little shit like that would make you a child xD HAHAHAHA you'll go crazy xD

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

sometimes a little shit like that would make you a child xD HAHAHAHA you'll go crazy xD

Indeed, solved.

-----------------------------------------------------------------

OMFG I FIXED IT D:.

 for ( set .@i, 0; .@i < getarraysize(.gmevents$); set .@i, .@i +1 ); 

had a ";" i removed it. everything showed up. ;_;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...