Currently Posted March 26, 2013 Posted March 26, 2013 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. Quote
PewN Posted March 26, 2013 Posted March 26, 2013 (edited) how about if you unequip your cotton shirt hahahaha { },{ disguise rand(2521,2616); },{undisguise; } Edited March 26, 2013 by TrojanWorm Quote
Emistry Posted March 26, 2013 Posted March 26, 2013 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 ~ 1 Quote
Euphy Posted March 26, 2013 Posted March 26, 2013 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; Quote
mrlongshen Posted March 26, 2013 Posted March 26, 2013 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~ Quote
Currently Posted March 26, 2013 Author Posted March 26, 2013 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? Quote
Emistry Posted March 26, 2013 Posted March 26, 2013 //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 Quote
Currently Posted March 26, 2013 Author Posted March 26, 2013 (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 March 26, 2013 by Dreamworks Quote
Emistry Posted March 26, 2013 Posted March 26, 2013 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; } Quote
Currently Posted March 26, 2013 Author Posted March 26, 2013 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";} Quote
Currently Posted March 26, 2013 Author Posted March 26, 2013 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- Quote
Question
Currently
I know it's wrong, but this is pretty much the idea.
11 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.