dqseishi Posted October 26, 2014 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 4 Reputation: 0 Joined: 08/13/14 Last Seen: November 3, 2014 Share Posted October 26, 2014 i tried this pet evolution script made by AnnieRuRu prontera,156,178,5 script ldfhsdfkljs 100,{ if ( petstat(PET_CLASS) ) { mes "please return your pet into egg state to continue"; close; } getinventorylist; for ( .@i = 0; .@i < @inventorylist_count; .@i++ ) { if ( @inventorylist_card1[.@i] == -256 ) { query_sql "select class, level, equip, name from pet where pet_id = "+( .@id = @inventorylist_card2[.@i] + ( ( @inventorylist_card2[.@i] >= 0 )? 0 : 1 << 16 ) + @inventorylist_card3[.@i] * ( 1 << 16 ) ), .@class, .@level, .@equipped, .@name$; .@menu$ = .@menu$ +"^0000FF"+ .@name$ +" ^00CC00{"+ getmonsterinfo( .@class, 0 ) +"} ^000000["+ .@level +"] ^FF0000"+( ( .@equipped )? "*equipped" : "" )+":"; .@pet_id[.@c] = .@id; .@egg_id[.@c] = @inventorylist_id[.@i]; .@pet_name$[.@c] = .@name$; .@pet_class[.@c] = .@class; .@pet_level[.@c] = .@level; .@pet_equipped[.@c] = .@equipped; .@c++; } } if ( !.@c ) { mes "your inventory doesn't have any pet egg"; close; } mes "select which pet that you want it to evolve"; next; .@s = select( .@menu$ ) -1; mes "selected : "+ .@pet_name$[.@s]; mes "level : "+ .@pet_level[.@s]; mes "equipped : "+( ( .@pet_equipped[.@s] )? "Yes" : "No" ); if ( getd( ".pet"+ .@pet_class[.@s] ) ) mes "require : "+ getitemname( getd( ".pet"+ .@pet_class[.@s] ) ); next; if ( !getd( ".pet"+ .@pet_class[.@s] ) ) { mes "this pet cannot evolve any further"; close; } if ( .@pet_level[.@s] < .min_level ) { mes "this pet doesn't meet the level requirement"; close; } if ( .@pet_equipped[.@s] ) { mes "please unequip this pet accesory to continue"; close; } if ( !countitem( getd( ".pet"+ .@pet_class[.@s] ) ) ) { mes "you need "+ getitemname( getd( ".pet"+ .@pet_class[.@s] ) ) +" to evolve this pet"; close; } delitem getd( ".pet"+ .@pet_class[.@s] ), 1; delitem2 .@egg_id[.@s], 1, 1, 0, 0, -256, ( .@pet_id[.@s] % ( 1 << 16 ) - ( .@remainder15 = .@pet_id[.@s] % ( 1 << 15 ) ) < ( 1 << 15 ) )? .@remainder15 : ( .@remainder15 - ( 1 << 15 ) ), .@pet_id[.@s] >> 16, 0; makepet .@get_pet_id = getd( ".pet"+ .@pet_class[.@s] +"["+ rand( 1, getarraysize( getd( ".pet"+ .@pet_class[.@s] ) ) -1 ) +"]" ); mes "your "+ .@pet_name$[.@c] +" has reborn into "+ getmonsterinfo( .@get_pet_id, 0 ); mes "please rename your pet ~"; close; OnInit: .min_level = 80; // minimum level 80 to change pet egg // array getd( ... + <require pet egg> ), <require item>, <random pet egg 1>, <random pet egg 2> .... setarray getd( ".pet"+ 1002 ), 501, 1113, 1031; // poring pet(1002) with red pot(501) can evolve into drops(1113) or poporing(1031) setarray getd( ".pet"+ 1011 ), 502, 1042; // chonchon(1011) with orange pot(502) can evolve into steel chonchon(1042) // add more as needed end; } but everytime i try to use it, it always give me this error: [Error]: buildin_delitem2: failed to delete 1 items (AID=2000000 item_id=9001). any help with this?? btw, i havent touched/changed the script. Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted March 18, 2017 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 11 hours ago Share Posted March 18, 2017 if ( !countitem( getd( ".pet"+ .@pet_class[.@s] ) ) ) { you need to use countitem2 Quote Link to comment Share on other sites More sharing options...
-1 Saemonz Posted June 16, 2015 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 9 Reputation: 2 Joined: 02/22/15 Last Seen: March 12, 2016 Share Posted June 16, 2015 up, i have the same problem. Quote Link to comment Share on other sites More sharing options...
-1 chatterboy Posted February 23, 2017 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 309 Reputation: 26 Joined: 11/26/12 Last Seen: November 22, 2024 Share Posted February 23, 2017 mine too Quote Link to comment Share on other sites More sharing options...
Question
dqseishi
i tried this pet evolution script made by AnnieRuRu
but everytime i try to use it, it always give me this error:
any help with this??
btw, i havent touched/changed the script.
Link to comment
Share on other sites
3 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.