Jump to content
  • 0

When worn, atcommand "@disguise" random mob.


Question

11 answers to this question

Recommended Posts

Posted

 

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
Posted

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;

Posted

 

 

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~
Posted

 

 

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?

Posted

//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

Posted (edited)

//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
Posted

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; } 
Posted

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";}

 

Posted

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-

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...