keima25 Posted March 8, 2015 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 51 Reputation: 0 Joined: 09/12/13 Last Seen: December 1, 2019 Share Posted March 8, 2015 (edited) im using this script to restrict some mvp monster for the event managers but when this script enable i cant use the command @monster even the admin account ...help pls thx can some improve it or can some1 make a new a better 1 ? thx - script Strict -1,{ OnInit: setarray .mob_restriction[0],1646,1647,1648,1649,1650,1651,1751,1708; .size = getarraysize(.mob_restriction); bindatcmd "monster",strnpcinfo(3)+"::OnExe"; end; OnExe: .monster_id = atoi( .@atcmd_parameters$[0] ); for ( .@i = 0; .@i < .size; .@i++ ) { if ( .monster_id == .mob_restriction[.@i] && getgmlevel() < 99 ) { dispbottom "You cannot summon this monster"; end; } } if ( getmonsterinfo( .monster_id, 0 ) != "null" ) { .@amount = atoi( .@atcmd_parameters$[1] ); atcommand "@monster " +.monster_id+ " " +(!.@amount?1:.@amount); } end; } Edited March 8, 2015 by keima25 Quote Link to comment Share on other sites More sharing options...
Auxillary Posted March 9, 2015 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 8 Reputation: 3 Joined: 01/22/15 Last Seen: February 5, 2019 Share Posted March 9, 2015 What specific error do you get? Does the script say you can't summon it or it just doesn't work? Quote Link to comment Share on other sites More sharing options...
keima25 Posted March 9, 2015 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 51 Reputation: 0 Joined: 09/12/13 Last Seen: December 1, 2019 Author Share Posted March 9, 2015 the @monster command remove dont know y, even the admin account . Quote Link to comment Share on other sites More sharing options...
Radian Posted March 9, 2015 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 1546 Reputation: 192 Joined: 07/23/14 Last Seen: June 24, 2024 Share Posted March 9, 2015 Try this one http://pastebin.com/raw.php?i=hQ3iTKK1 Quote Link to comment Share on other sites More sharing options...
Question
keima25
im using this script to restrict some mvp monster for the event managers but when this script enable i cant use the command @monster even the admin account ...help pls thx
can some improve it or can some1 make a new a better 1 ? thx
Edited by keima25Link to comment
Share on other sites
3 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.