Jump to content
  • 0

Disguise Event not Working


Question

Posted

when I write the correct mob name nothing happens

 

i use sql Database

/*//------------------------------------------------------------//
//----------------Edited by Lenya---------------------------------//
//------------------Ascension of Ragnarok---------------------------//
//--------------------Disguise Event NPC -----------------------------//
//-------------------------------------------------------------------//*/

fire_event,40,16,4	script	Disguise CP		794,{

if (getgmlevel()<99)
{
	mes "^3399FF[Disguise CP]^000000";	
	mes "Sorry, du hast keine Berechtigung.";
	close;
}

mes "^3399FF[Disguise CP]^000000";	
mes "Hallo Boss,";
mes "Was möchtest du heute machen?";
switch(select("Event starten:Event stoppen:Anzahl der Runden kalkulieren[^E50000"+$guessrounds+"^000000]:Preis kalkulieren^E50000 ["+getitemname($guessprize)+"]^000000 ^E50000 ["+ $guessprizecount + "]^000000:Nichts"))
{
	case 1: 
	{
		next;
		mes "^3399FF[Disguise CP]^000000";
		mes "Bestätigen sie durch die Eingabe von START."; 
		input .@confirm$;          
		if (.@confirm$ == "START") 
		{
			donpcevent "guessAnnouncer::OnGMStart"; 
			close;
		}
		mes "Bestätigung fehlgeschlagen";
		close;
		break;
	}
	case 2:
	{
		next;
		mes "^3399FF[Disguise CP]^000000";
		mes "Bestätigen sie durch die Eingabe von STOP."; 
		input .@confirm$;          
		if (.@confirm$ == "STOP") 
		{
			donpcevent "guessAnnouncer::OnGMStop";
			close;
		}
		mes "Bestätigung fehlgeschlagen";
		close;
		break;
		
	}
	
	case 3:
	{
		next; mes "^3399FF[Disguise CP]^000000";
		mes "Bitte gib eine neue Nummer ein."; 
		input $guessrounds; 
		if ($guessrounds > 30) set $guessrounds, 30;
		else if ($guessrounds < 1) set $guessrounds, 1;
		close;
	}
	
	case 4:
	{
		next; mes "^3399FF[Disguise CP]^000000";
		mes "Bitte gib eine Preis ID ein."; 
		input .@guessprizeid; 
		if (getitemname(.@guessprizeid) == "null" || getitemname(.@guessprizeid) == "") {next; mes "^3399FF[Disguise CP]^000000"; mes "Error"; mes "This item does not exist in the database..."; close;}
		set $guessprize, .@guessprizeid;
		next; mes "^3399FF[Disguise CP]^000000";
		mes "Bitte gib die Anzahl der Preise an."; 
		input .@guessprizeamount;
		if (!.@guessprizeamount) set .@guessprizeamount,1 ;
		set $guessprizecount,.@guessprizeamount; 
		next; mes "^3399FF[Disguise CP]^000000";
		mes "Der Preis wurde zu ^E50000 "+ getitemname($guessprize)+ "^000000 und die Menge ^E50000 " +$guessprizecount+"^000000";
		close;
	}
	
					
	case 5:
	{
		next; mes "^3399FF[Disguise CP]^000000";
		mes "Schönen Tag noch."; 
		close;
	}

}


}







3 answers to this question

Recommended Posts

Posted
prontera,157,162,5	script	disguise	794,{

if (getgmlevel()<99)
{
	mes "^3399FF[Disguise CP]^000000";	
	mes "Sorry, du hast keine Berechtigung.";
	close;
}

mes "^3399FF[Disguise CP]^000000";	
mes "Hallo Boss,";
mes "Was möchtest du heute machen?";
switch(select("Event starten:Event stoppen:Anzahl der Runden kalkulieren[^E50000"+$guessrounds+"^000000]:Preis kalkulieren^E50000 ["+getitemname($guessprize)+"]^000000 ^E50000 ["+ $guessprizecount + "]^000000:Nichts"))
{
	case 1: 
	{
		next;
		mes "^3399FF[Disguise CP]^000000";
		mes "Bestätigen sie durch die Eingabe von START."; 
		input .@confirm$;          
		if (.@confirm$ == "START") 
		{
			donpcevent "guessAnnouncer::OnGMStart";
			dispbottom "START";
			close;
		}
		mes "Bestätigung fehlgeschlagen";
		close;
		break;
	}
	case 2:
	{
		next;
		mes "^3399FF[Disguise CP]^000000";
		mes "Bestätigen sie durch die Eingabe von STOP."; 
		input .@confirm$;          
		if (.@confirm$ == "STOP") 
		{
			donpcevent "guessAnnouncer::OnGMStop";
			close;
		}
		mes "Bestätigung fehlgeschlagen";
		close;
		break;
		
	}
	
	case 3:
	{
		next; mes "^3399FF[Disguise CP]^000000";
		mes "Bitte gib eine neue Nummer ein."; 
		input $guessrounds; 
		if ($guessrounds > 30) set $guessrounds, 30;
		else if ($guessrounds < 1) set $guessrounds, 1;
		close;
	}
	
	case 4:
	{
		next; mes "^3399FF[Disguise CP]^000000";
		mes "Bitte gib eine Preis ID ein."; 
		input .@guessprizeid; 
		if (getitemname(.@guessprizeid) == "null" || getitemname(.@guessprizeid) == "") {next; mes "^3399FF[Disguise CP]^000000"; mes "Error"; mes "This item does not exist in the database..."; close;}
		set $guessprize, .@guessprizeid;
		next; mes "^3399FF[Disguise CP]^000000";
		mes "Bitte gib die Anzahl der Preise an."; 
		input .@guessprizeamount;
		if (!.@guessprizeamount) set .@guessprizeamount,1 ;
		set $guessprizecount,.@guessprizeamount; 
		next; mes "^3399FF[Disguise CP]^000000";
		mes "Der Preis wurde zu ^E50000 "+ getitemname($guessprize)+ "^000000 und die Menge ^E50000 " +$guessprizecount+"^000000";
		close;
	}
	
					
	case 5:
	{
		next; mes "^3399FF[Disguise CP]^000000";
		mes "Schönen Tag noch."; 
		close;
	}

}


}

prontera,158,162,5	script	guessAnnouncer	794,{
    mes "Hey the Disguise NPC starts my script!";
    close2;
    //set .@emote, rand(1,30);
OnGMStart:
	announce "Test Message by Normynator",bc_all;
    end;
}

Do you see the part I added?

If you type "START" the script will not stop at:

donpcevent "guessAnnouncer::OnGMStart"; 

Now it goes on at:

prontera,158,162,5	script	guessAnnouncer	794,{
    mes "Hey the Disguise NPC starts my script!";
    close2;
    //set .@emote, rand(1,30);
OnGMStart:
	announce "Test Message by Normynator",bc_all;
    end;
}

Soo there is something missing in your script

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...