Vale Posted March 17, 2020 Group: Members Topic Count: 21 Topics Per Day: 0.01 Content Count: 46 Reputation: 1 Joined: 03/16/20 Last Seen: March 25, 2021 Share Posted March 17, 2020 Hello, Good Day ! I am just new here and I want to have a @quest command wherein if I type @quest it will go to the quest room. Thanks in advance ! Quote Link to comment Share on other sites More sharing options...
1 Gladius Posted March 17, 2020 Group: Members Topic Count: 12 Topics Per Day: 0.01 Content Count: 235 Reputation: 64 Joined: 04/29/19 Last Seen: 18 hours ago Share Posted March 17, 2020 (edited) 32 minutes ago, Vale said: Hello, Good Day ! I am just new here and I want to have a @quest command wherein if I type @quest it will go to the quest room. Thanks in advance ! - script command_quest -1,{ OnInit: bindatcmd("quest",strnpcinfo(3)+"::OnAtcommand",0,99); end; OnAtcommand: if( strcharinfo(3) == "restrict01" || strcharinfo(3) == "restrict02") { dispbottom "[@quest] : The command cannot be used on this map."; end; } warp "map",x,y; end; } maps that the command cannot be used: if( strcharinfo(3) == "restrict01" || strcharinfo(3) == "restrict02") { map of the quest room, where the player will be teleported. warp "map",x,y; enjoy. Edited March 17, 2020 by Gladius 1 Quote Link to comment Share on other sites More sharing options...
0 Vale Posted March 18, 2020 Group: Members Topic Count: 21 Topics Per Day: 0.01 Content Count: 46 Reputation: 1 Joined: 03/16/20 Last Seen: March 25, 2021 Author Share Posted March 18, 2020 Thanks ! 21 hours ago, Gladius said: - script command_quest -1,{ OnInit: bindatcmd("quest",strnpcinfo(3)+"::OnAtcommand",0,99); end; OnAtcommand: if( strcharinfo(3) == "restrict01" || strcharinfo(3) == "restrict02") { dispbottom "[@quest] : The command cannot be used on this map."; end; } warp "map",x,y; end; } maps that the command cannot be used: if( strcharinfo(3) == "restrict01" || strcharinfo(3) == "restrict02") { map of the quest room, where the player will be teleported. warp "map",x,y; enjoy. Quote Link to comment Share on other sites More sharing options...
Question
Vale
Hello, Good Day !
I am just new here and I want to have a @quest command wherein if I type @quest it will go to the quest room.
Thanks in advance !
Link to comment
Share on other sites
2 answers 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.