mrlongshen 22 Posted November 9, 2013 (edited) I want to request a plugin for random disguise of monster in mob db. Its for disguise event that handle for gm. The monster name will Appear on the chat box of gm only. So we can see player guess correct or not. Edited November 9, 2013 by mrlongshen Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted November 9, 2013 You can make a script using getrandmob for this: - script randomdisguise -1,{OnWhisperGlobal: if (getgmlevel() < 60) end; // Change the 60 to any minimum GM value you want to check set .@randmob, getrandmob(150,0); // 1st parameter = max level of the mob; 2nd parameter: 0 if fetching from dead branch list, 1 from poring list, 2 from bloody branch list atcommand "@disguise "+.@randmob; message strcharinfo(0),"You've been disguised as: " + strmobinfo(1,.@randmob); end;} Just whisper to it while having enough GM level to get disguised. 1 mrlongshen reacted to this Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted November 9, 2013 my level gm is 99. I try use @disguise, but its not automatic disguise. how does its work sir ? can u explain more details sir ? Quote Share this post Link to post Share on other sites
0 kyeme 71 Posted November 9, 2013 my level gm is 99. I try use @disguise, but its not automatic disguise. how does its work sir ? can u explain more details sir ? From the script of Master Jabote, you will need to whisper "randomdisguise" in your chatbox. 2 mrlongshen and jaBote reacted to this Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted November 9, 2013 (edited) You can make a script using getrandmob for this: - script randomdisguise -1,{OnWhisperGlobal: if (getgmlevel() < 60) end; // Change the 60 to any minimum GM value you want to check set .@randmob, getrandmob(150,0); // 1st parameter = max level of the mob; 2nd parameter: 0 if fetching from dead branch list, 1 from poring list, 2 from bloody branch list atcommand "@disguise "+.@randmob; message strcharinfo(0),"You've been disguised as: " + strmobinfo(1,.@randmob); end;} Just whisper to it while having enough GM level to get disguised. thanks alot sir You can make a script using getrandmob for this: - script randomdisguise -1,{OnWhisperGlobal: if (getgmlevel() < 60) end; // Change the 60 to any minimum GM value you want to check set .@randmob, getrandmob(150,0); // 1st parameter = max level of the mob; 2nd parameter: 0 if fetching from dead branch list, 1 from poring list, 2 from bloody branch list atcommand "@disguise "+.@randmob; message strcharinfo(0),"You've been disguised as: " + strmobinfo(1,.@randmob); end;} Just whisper to it while having enough GM level to get disguised. can you make its a plugin ? Edited November 9, 2013 by mrlongshen Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted November 9, 2013 It's a total waste of time to make this a plugin when you can have a script that can do that for you. Quote Share this post Link to post Share on other sites
0 Mhalicot 392 Posted November 9, 2013 (edited) try to use bindatcmd - script randomdisguise -1,{OnInit: bindatcmd "disguise "+.@randmob,strnpcinfo(3)+"::OnAtcommand"; end;OnAtcommand: if (getgmlevel() < 60) end; // Change the 60 to any minimum GM value you want to check set .@randmob, getrandmob(150,0); // 1st parameter = max level of the mob; 2nd parameter: 0 if fetching from dead branch list, 1 from poring list, 2 from bloody branch list message strcharinfo(0),"You've been disguised as: " + strmobinfo(1,.@randmob); end;} ddnt test it yet. Edited November 9, 2013 by sevenzz23 Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted November 9, 2013 try to use bindatcmd - script randomdisguise -1,{OnInit: bindatcmd "disguise "+.@randmob,strnpcinfo(3)+"::OnAtcommand"; end;OnAtcommand: if (getgmlevel() < 60) end; // Change the 60 to any minimum GM value you want to check set .@randmob, getrandmob(150,0); // 1st parameter = max level of the mob; 2nd parameter: 0 if fetching from dead branch list, 1 from poring list, 2 from bloody branch list message strcharinfo(0),"You've been disguised as: " + strmobinfo(1,.@randmob); end;} ddnt test it yet. i have tested it. i try to use @disguise and @randomdisguise, it not works sir. huhu Quote Share this post Link to post Share on other sites
0 quesoph 105 Posted November 10, 2013 (edited) If you don't have getrandmob plugins - script randomdisguise -1,{OnInit: // @randomdisguise bindatcmd "randomdisguise",strnpcinfo(3)+"::OnAtcommand",60,60,1; // only gm level 60 and above can use this command. 1 = log command. end; OnAtcommand: set .@randmob, rand(1002,3000); // randomize mob id 1002 to 3000. if ( getmonsterinfo(.@randmob,0) == "null" ) { // this will produce an error on your console if mob id is null. message strcharinfo(0),"Random Disguise Failed." ; dispbottom "Monster ID: " +.@randmob + " does not exist." ; end; } disguise .@randmob; // set disguise message strcharinfo(0),"You've been disguised as: " + strmobinfo(1,.@randmob); end;} Edited November 10, 2013 by quesoph Quote Share this post Link to post Share on other sites
I want to request a plugin for random disguise of monster in mob db. Its for disguise event that handle for gm. The monster name will Appear on the chat box of gm only. So we can see player guess correct or not.
Edited by mrlongshenShare this post
Link to post
Share on other sites