Onairda Posted October 26, 2017 Group: Members Topic Count: 74 Topics Per Day: 0.02 Content Count: 177 Reputation: 9 Joined: 12/30/16 Last Seen: 7 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 Onairda Posted October 30, 2017 Group: Members Topic Count: 74 Topics Per Day: 0.02 Content Count: 177 Reputation: 9 Joined: 12/30/16 Last Seen: 7 hours ago Author Share Posted October 30, 2017 Fix . just rename the Oncommand to another name it jsut like goto Quote Link to comment Share on other sites More sharing options...
0 llchrisll Posted October 30, 2017 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 626 Reputation: 189 Joined: 11/19/11 Last Seen: March 25 Share 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 Link to comment Share on other sites More sharing options...
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
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.