Jump to content
  • 0
Sign in to follow this  
mrlongshen

@randomdisguise

Question

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 mrlongshen

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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 by mrlongshen

Share this post


Link to post
Share on other sites
  • 0

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 by sevenzz23

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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 by quesoph

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.