Jump to content
  • 0

help warper with requirements


Question

Posted

good day please help me with this script

 

- if players bring the item he/she can enter the warper

- if players go out and deside to enter again he /she need to bring item required again

 

thank you this is the script

 

prontera,162,176,0	script	Mining	1907,3,3,{
	
	mes "[^0000FFMining Entrance^000000]";
	switch(QuestWarp) {
		default:
			mes "Before i warp you to mining ground you must have mithril coin from skill matching event";
			mes "5x Mithril Coin";
			mes "1x Gold Coin US";
			QuestWarp = 1;
			close;
		
		case 1:
			if(countitem(674) >= 5 && countitem(7720) >= 1) {
				mes "Great! You have the items.";
				select("Warp Me");
				delitem 7720,1;
				delitem 674,5;
				QuestWarp = 2;
				warp "force_2-2",173,121;
				end;
			} else {
				mes "Bring me the items I asked for!";
				close;
			}
		
		case 2:
			mes "Would you like to warp?";
			select("Yes!");
			warp "force_2-2",173,121;
			end;
			
	}

}

 

12 answers to this question

Recommended Posts

  • 0
Posted

you didn't copy pasted my script properly , you missing one "}"

 

copy here and paste properly 

prontera,162,176,0	script	Mining	1907,3,3,{
    
            mes "[^0000FFMining Entrance^000000]"; 
            mes "Before i warp you to mining ground you must have mithril coin from skill matching event";
            mes "5x Mithril Coin";
            mes "1x Gold Coin US";
            next;
            mes "[^0000FFMining Entrance^000000]"; 
            mes "you want to go for mining?";
            switch(select("I have requirements!","no thanks...")) {

        
        case 1:
            if(countitem(674) >= 5 && countitem(7720) >= 1) {
                mes "[^0000FFMining Entrance^000000]"; 
                mes "Great! You have the items.";
                select("Warp Me");
                delitem 7720,1;
                delitem 674,5;
                warp "force_2-2",173,121;
                end;
            } else {
                mes "[^0000FFMining Entrance^000000]"; 
                mes "Bring me the items I asked for!";
                close;
            }
        
        case 2:
            mes "[^0000FFMining Entrance^000000]"; 
            mes "ok! see you next time!";
            close;
    }
}

 

  • Upvote 1
  • 0
Posted
prontera,162,176,0	script	Mining	1907,3,3,{
	
			mes "[^0000FFMining Entrance^000000]"; 
			mes "Before i warp you to mining ground you must have mithril coin from skill matching event";
			mes "5x Mithril Coin";
			mes "1x Gold Coin US";
			next;
			mes "[^0000FFMining Entrance^000000]"; 
			mes "you want to go for mining?";
			switch(select("I have requirements!","no thanks...")) {

		
		case 1:
			if(countitem(674) >= 5 && countitem(7720) >= 1) {
				mes "[^0000FFMining Entrance^000000]"; 
				mes "Great! You have the items.";
				select("Warp Me");
				delitem 7720,1;
				delitem 674,5;
				warp "force_2-2",173,121;
				end;
			} else {
				mes "[^0000FFMining Entrance^000000]"; 
				mes "Bring me the items I asked for!";
				close;
			}
		
		case 2:
			mes "[^0000FFMining Entrance^000000]"; 
			mes "ok! see you next time!" ;
			close;
	}

}

 

  • Upvote 1
  • 0
Posted
15 hours ago, Cyro said:

prontera,162,176,0	script	Mining	1907,3,3,{
	
			mes "[^0000FFMining Entrance^000000]"; 
			mes "Before i warp you to mining ground you must have mithril coin from skill matching event";
			mes "5x Mithril Coin";
			mes "1x Gold Coin US";
			next;
			mes "[^0000FFMining Entrance^000000]"; 
			mes "you want to go for mining?";
			switch(select("I have requirements!","no thanks...")) {

		
		case 1:
			if(countitem(674) >= 5 && countitem(7720) >= 1) {
				mes "[^0000FFMining Entrance^000000]"; 
				mes "Great! You have the items.";
				select("Warp Me");
				delitem 7720,1;
				delitem 674,5;
				warp "force_2-2",173,121;
				end;
			} else {
				mes "[^0000FFMining Entrance^000000]"; 
				mes "Bring me the items I asked for!";
				close;
			}
		
		case 2:
			mes "[^0000FFMining Entrance^000000]"; 
			mes "ok! see you next time!" ;
			close;
	}

}

 

oh btw sir its not working

  • 0
Posted
15 hours ago, Cyro said:

any console errors? 

place tabs in header 


prontera,162,176,0<tab>script<tab>Mining<tab>1907,3,3,{

i also did that but the npc still missing

  • 0
Posted
15 hours ago, Cyro said:

any console errors? its working fine for me!

its a full script or part of the script?

this is the error sir 

 

[Error]: Missing 1 right curlys at file 'npc/custom/mine.txt', line '32'.
[Error]: npc_parsesrcfile: Unknown syntax in file 'npc/custom/map.txt', line '71'. Stopping...
 * w1=end;
 * w2=
 * w3=
 * w4=

 

  • 0
Posted (edited)
1 minute ago, Questune09 said:

this is the error sir 

 


[Error]: Missing 1 right curlys at file 'npc/custom/mine.txt', line '32'.
[Error]: npc_parsesrcfile: Unknown syntax in file 'npc/custom/map.txt', line '71'. Stopping...
 * w1=end;
 * w2=
 * w3=
 * w4=

 

post your full script 

Edited by Cyro
  • 0
Posted (edited)
4 minutes ago, Cyro said:

post your full script 

prontera,162,176,0    script    Mining    1907,3,3,{
    
            mes "[^0000FFMining Entrance^000000]"; 
            mes "Before i warp you to mining ground you must have mithril coin from skill matching event";
            mes "5x Mithril Coin";
            mes "1x Gold Coin US";
            next;
            mes "[^0000FFMining Entrance^000000]"; 
            mes "you want to go for mining?";
            switch(select("I have requirements!","no thanks...")) {

        
        case 1:
            if(countitem(674) >= 5 && countitem(7720) >= 1) {
                mes "[^0000FFMining Entrance^000000]"; 
                mes "Great! You have the items.";
                select("Warp Me");
                delitem 7720,1;
                delitem 674,5;
                warp "force_2-2",173,121;
                end;
            } else {
                mes "[^0000FFMining Entrance^000000]"; 
                mes "Bring me the items I asked for!";
                close;
            }
        
        case 2:
            mes "[^0000FFMining Entrance^000000]"; 
            mes "ok! see you next time!";
            close;
    }

 

Edited by Cyro
  • 0
Posted
15 hours ago, Cyro said:

you didn't copy pasted my script properly , you missing one "}"

 

copy here and paste properly 


prontera,162,176,0	script	Mining	1907,3,3,{
    
            mes "[^0000FFMining Entrance^000000]"; 
            mes "Before i warp you to mining ground you must have mithril coin from skill matching event";
            mes "5x Mithril Coin";
            mes "1x Gold Coin US";
            next;
            mes "[^0000FFMining Entrance^000000]"; 
            mes "you want to go for mining?";
            switch(select("I have requirements!","no thanks...")) {

        
        case 1:
            if(countitem(674) >= 5 && countitem(7720) >= 1) {
                mes "[^0000FFMining Entrance^000000]"; 
                mes "Great! You have the items.";
                select("Warp Me");
                delitem 7720,1;
                delitem 674,5;
                warp "force_2-2",173,121;
                end;
            } else {
                mes "[^0000FFMining Entrance^000000]"; 
                mes "Bring me the items I asked for!";
                close;
            }
        
        case 2:
            mes "[^0000FFMining Entrance^000000]"; 
            mes "ok! see you next time!";
            close;
    }
}

 

working now thank you so much

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...