Mabuhay Posted June 7, 2013 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
Capuche Posted June 7, 2013 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
Patskie Posted June 7, 2013 Posted June 7, 2013 Maybe u can use onpcloadmap event and unbindatcmd Quote
Deleted User Posted June 8, 2013 Posted June 8, 2013 (edited) Useful. Edited July 9, 2017 by Kaze Quote
Mabuhay Posted June 8, 2013 Author 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
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:
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.