Jump to content
  • 0

help warper with requirements


Quesooo

Question


  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

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;
			
	}

}

 

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

Just now, Questune09 said:

oh btw sir its not working

not working in the sense? can elaborate ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

15 hours ago, Cyro said:

not working in the sense? can elaborate ?

the npc is gone sir sorry

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

any console errors? 

place tabs in header 

prontera,162,176,0<tab>script<tab>Mining<tab>1907,3,3,{
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

any console errors? its working fine for me!

its a full script or part of the script?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

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=

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

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

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