Jump to content
  • 0

When worn, atcommand "@disguise" random mob.


Currently

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  313
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

2301,Cotton_Shirt,Cotton Shirt,5,10,,100,,10,,4,0xFFFFFFFF,7,2,16,,0,1,0,{ atcommand "@disguise rand(2521,2616)";},{},{}

I know it's wrong, but this is pretty much the idea.

Link to comment
Share on other sites

11 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

how about if you unequip your cotton shirt :D hahahaha
 

{  },{ disguise rand(2521,2616); },{undisguise; }
Edited by TrojanWorm
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

cannot disguise as mob :(

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

 

2301,Cotton_Shirt,Cotton Shirt,5,10,,100,,10,,4,0xFFFFFFFF,7,2,16,,0,1,0,{ atcommand "@disguise rand(2521,2616)";},{},{}

I know it's wrong, but this is pretty much the idea.

atcommand "@disguise "+rand( 2521,2616);

 

 

 

and for the another post....check for any error ...

the script look fine ~

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1131
  • Joined:  05/27/12
  • Last Seen:  

query_sql("SELECT ID FROM `mob_db` WHERE left(Sprite, 4) != 'meta' AND left(Sprite, 2) != 'E_' AND EXP > 0 AND DropCardid > 4000 AND DropCardid < 5000 AND ID < 2000 ORDER BY rand() LIMIT 1", .@mob);

disguise .@mob;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

 

 

2301,Cotton_Shirt,Cotton Shirt,5,10,,100,,10,,4,0xFFFFFFFF,7,2,16,,0,1,0,{ atcommand "@disguise rand(2521,2616)";},{},{}

I know it's wrong, but this is pretty much the idea.

atcommand "@disguise "+rand( 2521,2616);

 

 

 

and for the another post....check for any error ...

the script look fine ~

 

i just put it the item_db.

but still cannot sir..

 

 

query_sql("SELECT ID FROM `mob_db` WHERE left(Sprite, 4) != 'meta' AND left(Sprite, 2) != 'E_' AND EXP > 0 AND DropCardid > 4000 AND DropCardid < 5000 AND ID < 2000 ORDER BY rand() LIMIT 1", .@mob);

disguise .@mob;

 

wah sir, this is for ? should i add this to sql ?

 query_sql("SELECT ID FROM `mob_db` WHERE left(Sprite, 4) != 'meta' AND left(Sprite, 2) != 'E_' AND EXP > 0 AND DropCardid > 4000 AND DropCardid < 5000 AND ID < 2000 ORDER BY rand() LIMIT 1", .@mob);
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'query_sql("SELECT ID FROM `mob_db` WHERE left(Sprite, 4) != 'meta' AND left(Spri' at line 1
 
WEW~
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  313
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

 

 

2301,Cotton_Shirt,Cotton Shirt,5,10,,100,,10,,4,0xFFFFFFFF,7,2,16,,0,1,0,{ atcommand "@disguise rand(2521,2616)";},{},{}

I know it's wrong, but this is pretty much the idea.

atcommand "@disguise "+rand( 2521,2616);

 

 

 

and for the another post....check for any error ...

the script look fine ~

 

Last thing, how to make it like except ID 2549, 2569, and 2575?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  


//callfunc( "disguide_mob",2521,2616 );

function	script	disguise_mob	{
	.@min_mob_id = getarg(0);
	.@max_mob_id = getarg(1);
	
	do{
		.@mob_id = rand( .@max_mob_id,.@min_mob_id );
	}while( .@mob_id == 2549 || .@mob_id == 2569 || .@mob_id == 2575 );

	return .@mob_id;
}

 

try

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  313
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  


//callfunc( "disguide_mob",2521,2616 );

function	script	disguise_mob	{
	.@min_mob_id = getarg(0);
	.@max_mob_id = getarg(1);
	
	do{
		.@mob_id = rand( .@max_mob_id,.@min_mob_id );
	}while( .@mob_id == 2549 || .@mob_id == 2569 || .@mob_id == 2575 );

	return .@mob_id;
}

 

try

 

the // part is the one to put in database right?

 

When I put "callfunc( "disguide_mob",2521,2616 );" to the database, It doesn't work no more saying Disguise Failed.

 

I already loaded the script too.

Edited by Dreamworks
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

i just show the way to call the func.. LOL..

 

it should be like this inside the item_db.txt

 

 

..........{}{ disguise callfunc( "disguide_mob",2521,2616 ); }{ undisguise; } 
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  313
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

Like this? 

 

 

2301,Cotton_Shirt,Cotton Shirt,5,10,,100,,10,,4,0xFFFFFFFF,7,2,16,,0,1,0,{},{disguise callfunc( "disguide_mob",2521,2616 ); },{ atcommand "@undisguise";}

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  313
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

i just show the way to call the func.. LOL..

 

it should be like this inside the item_db.txt

 

 

..........{}{ disguise callfunc( "disguide_mob",2521,2616 ); }{ undisguise; } 

 

-bump-

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...