Jump to content
  • 0

warp npc with item


Heartbreak

Question


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   0
  • Joined:  12/02/12
  • Last Seen:  

im having problem with this script.. 
what i'm trying to do is to create a warper that get an item before it warp you.. 
here's teh script i made.. please help me.. 
im a newbie :( 

// --------------------------------------------------
 //  AblazeRO Market/Casino warper
// --------------------------------------------------
ra_temple,120,179,4	script	Casino 

Entrance	939,{	

mes "Do you have a ticket ?";
if (countitem(7338) < 1) {
mes "[Casino Guard]";
mes "Sorry, no ticket no entry! ";
close;
} else {
delitem 7338,1;
	next;
warp "ra_temin,170,20;	
end;
	}
}

Please help me.. :( 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   0
  • Joined:  12/02/12
  • Last Seen:  

nvm.. figured.. XD


mine's a longer version XDDDDDD
 

// --------------------------------------------------
 //  AblazeRO Market/Casino warper
// --------------------------------------------------
ra_temple,120,179,4	script	Casino 

Entrance	939,{	if (countitem(7338) < 1) goto 

noTicket;

mes "Do you have a ticket ?";
next;
switch(select("Ofcourse !","Huh ?")) {	
case 1:
goto yesTicket;
close;
 case 2:
goto noTicket;
close;

noTicket:
mes "[Casino Guard]";
mes "Sorry, no ticket no entry! ";
close;

yesTicket:
mes "Goodluck !";
delitem 7338,1;
warp "ra_temin",170,20; 
close;
	}
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   41
  • Joined:  02/05/14
  • Last Seen:  

Missing a closing quotation mark for your warp command's map name (should be "ra_temin" instead of "ra_temin); here's a compressed version of your script with a proper header as well:

ra_temple,120,179,4	script	Casino Entrance	939,{	

	if (countitem(7338) < 1) {
		mes "[Casino Guard]";
		mes "Sorry, no ticket no entry";
	} else {
		delitem 7338, 1;
		warp "ra_temin", 170, 20;	
	}
	
	close;

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