fallen0519 Posted April 13, 2014 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 52 Reputation: 2 Joined: 02/15/14 Last Seen: May 10, 2017 Share Posted April 13, 2014 Hi, may I ask a favor about bindatcmd, is something like players can type @joinevent, and the NPC will ask them whether want to warp to the Event Area. "Yes" or "No" as selection. Hope some pro-scripter can help me about this. Thanks much~ Quote Link to comment Share on other sites More sharing options...
Missingno Posted April 14, 2014 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 135 Reputation: 41 Joined: 02/05/14 Last Seen: December 23, 2022 Share Posted April 14, 2014 Here's a sample of what you've described: - script joinevent -1,{ // Configuration OnInit: // Map settings .map_name$ = "payon"; .map_x = 20; .map_y = 20; // Command bindatcmd "joinevent", strnpcinfo(3) +"::OnCommand"; end; // Script OnCommand: // Confirm warp if (select("Warp to event area:End session") != 2) { // Warp to preset destination warp .map_name$, .map_x, .map_y; end; } close; } ...though I would probably just go without the confirmation, since the implementation is via atcommand: - script joinevent -1,{ // Configuration OnInit: // Map settings .map_name$ = "payon"; .map_x = 20; .map_y = 20; // Command bindatcmd "joinevent", strnpcinfo(3) +"::OnCommand"; end; // Script OnCommand: // Warp to preset destination warp .map_name$, .map_x, .map_y; end; close; } I've left some comments so you can get an idea of what each section of code does. Quote Link to comment Share on other sites More sharing options...
Question
fallen0519
Hi, may I ask a favor about bindatcmd, is something like players can type @joinevent, and the NPC will ask them whether want to warp to the Event Area. "Yes" or "No" as selection.
Hope some pro-scripter can help me about this. Thanks much~
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.