@randomdisguise

mrlongshen

Noobies
Messages
1,126
Points
0
Age
36
Location
localhost 127.0.0.1
Emulator
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.

 
Last edited by a moderator:
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.

 
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.

 
Last edited by a moderator:
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
default_smile.png


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 ?

 
Last edited by a moderator:
It's a total waste of time to make this a plugin when you can have a script that can do that for you.

 
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.

 
Last edited by a moderator:
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

 
If you don't have getrandmob plugins

Code:
-	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;}
 
Last edited by a moderator:
Back
Top