Jump to content
  • 0

Require Warp


Ninjamon

Question


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   2
  • Joined:  03/06/12
  • Last Seen:  

farebury,101,146,3	script	VIP Warper	714,{
	mes "Would you like to enter the VIP Room?";
	mes "Only Players with Premium Ticket can enter this room";
	if(select("Got It:Bye")==1){
		if(countitem(7608)>=1){
		mes "You will now be going to the VIP Room!";
		close2;
		sleep 500;
		warp "home_c01",24,55;
		end;
		} else {
		mes "I'm sorry but you don't meet the requirements!";
		close;
	}
	} else {
		mes "Have a nice day.";
		close;
		}
}

 

I tried tweaking a VIP Warper for those who has the ID #7608 Item Only. But a specific  line doesn't appear when a player doesn't meet with the requirements. (Im Sorry but you don't meet the requirements) doesnt appear when you dont have the said item.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  127
  • Reputation:   36
  • Joined:  01/21/13
  • Last Seen:  

farebury,101,146,3    script    VIP Warper    714,{

    mes "Would you like to enter the VIP Room?";
    mes "Only players with Premium Ticket can enter this room";
    if(select("Got it:Bye") == 1){
    
        if(countitem(7608) < 1){
        
            mes "I'm sorry, but you don't meet the requirements!";
            close;
            
        }
        
        mes "You will now be warped to the VIP Room!";
        close2;
        sleep 500;
        warp "home_c01",24,55;
        end;
            
    }
    
    mes "Have a nice day.";
    close;
        
}


I reversed the check to display the error message if you don't have the required item. If you do, however, that error will be skipped and the player will be warped to the VIP Room.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   2
  • Joined:  03/06/12
  • Last Seen:  

still "I'm sorry, but you don't meet the requirements!" doesn't pop up.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  331
  • Reputation:   63
  • Joined:  11/29/11
  • Last Seen:  

then you might have Item ID #7608

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  127
  • Reputation:   36
  • Joined:  01/21/13
  • Last Seen:  

still "I'm sorry, but you don't meet the requirements!" doesn't pop up.

 

Using the edit I provided, there is no reason it would skip the error menu - unless, as Dastgir said, you had the item 7608 in your inventory when you tested it. o-o

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   2
  • Joined:  03/06/12
  • Last Seen:  

I tried not having it.

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