Mabuhay Posted June 7, 2013 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 446 Reputation: 232 Joined: 03/20/12 Last Seen: October 22, 2020 Share Posted June 7, 2013 I was wondering how to let a bindatcmd work only at town maps. else maps, will say this command is not available in non-towns. here is the script: - script vendwarp -1,{ OnInit: bindatcmd("vend",strnpcinfo(0)+"::OnVend"); end; OnVend: warp "vend_zone",99,99; end; } Quote Link to comment Share on other sites More sharing options...
Capuche Posted June 7, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted June 7, 2013 - script vendwarp -1,{ OnInit: bindatcmd("vend",strnpcinfo(0)+"::OnVend"); end; OnVend: if( !getmapflag( strcharinfo(3),mf_town ) ) { message strcharinfo(0), "not autorized"; end; } warp "vend_zone",99,99; end; } getmapflag + mapflag town Quote Link to comment Share on other sites More sharing options...
Patskie Posted June 7, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 15 hours ago Share Posted June 7, 2013 Maybe u can use onpcloadmap event and unbindatcmd Quote Link to comment Share on other sites More sharing options...
Deleted User Posted June 8, 2013 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 235 Reputation: 55 Joined: 12/02/11 Last Seen: February 26, 2021 Share Posted June 8, 2013 (edited) Useful. Edited July 9, 2017 by Kaze Quote Link to comment Share on other sites More sharing options...
Mabuhay Posted June 8, 2013 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 446 Reputation: 232 Joined: 03/20/12 Last Seen: October 22, 2020 Author Share Posted June 8, 2013 hmm sorry but that script is used for my server. I mean the purpose of that is to warp the player to the vending map. That's its only purpose. Quote Link to comment Share on other sites More sharing options...
Question
Mabuhay
I was wondering how to let a bindatcmd work only at town maps. else maps, will say this command is not available in non-towns.
here is the script:
Link to comment
Share on other sites
4 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.