Onairda Posted October 26, 2017 Posted October 26, 2017 (edited) Hi im using alot of bindcommand on my server like @joinevent and @findmatch but sometimes either one of them are not available to use why?? @joinevent Script - script joinevent -1,{ OnInit: bindatcmd "joinevent",strnpcinfo(2)+"::OnAtCommand"; end; OnAtCommand: if((strcharinfo(3) == "guild_vs3") && getgroupid() < 3) message strcharinfo(0),"You can't use @joinevent in this map."; else warp "que_temsky",151, 139; //atcommand "@joinevent"; end; } @findmatch prontera,155,181,5 script FindMatch 777,{ bindatcmd "findmatch", strnpcinfo(3) +"::Oncommand"; Oncommand: mes "I am Party Match Manager."; mes "Party Leader may create a PVP Match here."; next; end; help Edited October 26, 2017 by G-RO Quote
0 Onairda Posted October 30, 2017 Author Posted October 30, 2017 Fix . just rename the Oncommand to another name it jsut like goto Quote
0 llchrisll Posted October 30, 2017 Posted October 30, 2017 (edited) On 26.10.2017 at 4:59 AM, G-RO said: Hi im using alot of bindcommand on my server like @joinevent and @findmatch but sometimes either one of them are not available to use why?? @joinevent Script - script joinevent -1,{ OnInit: bindatcmd "joinevent",strnpcinfo(2)+"::OnAtCommand"; end; OnAtCommand: if((strcharinfo(3) == "guild_vs3") && getgroupid() < 3) message strcharinfo(0),"You can't use @joinevent in this map."; else warp "que_temsky",151, 139; //atcommand "@joinevent"; end; } @findmatch prontera,155,181,5 script FindMatch 777,{ bindatcmd "findmatch", strnpcinfo(3) +"::Oncommand"; Oncommand: mes "I am Party Match Manager."; mes "Party Leader may create a PVP Match here."; next; end; help First: I would recommend you to use strnpcinfo(1) since you don't use an hidden name (#Name) for strnpcinfo(2) nor an unique name (::Name) for strnpcinfo(3). 2nd: You're missing OnInit for you're @findmatch command. That's why it only works when you click on it. 3rd: I would recommend you also to move the bindatcmd for @findmatch to the end of the script since the npc is visible to normal players. Regards, Chris Edited October 30, 2017 by llchrisll Quote
Question
Onairda
Hi im using alot of bindcommand on my server like @joinevent and @findmatch but sometimes either one of them are not available to use why??
@joinevent Script
- script joinevent -1,{ OnInit: bindatcmd "joinevent",strnpcinfo(2)+"::OnAtCommand"; end; OnAtCommand: if((strcharinfo(3) == "guild_vs3") && getgroupid() < 3) message strcharinfo(0),"You can't use @joinevent in this map."; else warp "que_temsky",151, 139; //atcommand "@joinevent"; end; }
@findmatch
prontera,155,181,5 script FindMatch 777,{ bindatcmd "findmatch", strnpcinfo(3) +"::Oncommand"; Oncommand: mes "I am Party Match Manager."; mes "Party Leader may create a PVP Match here."; next; end;
help
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.