-
Content Count
366 -
Joined
-
Last visited
-
Days Won
8
Posts posted by Patskie
-
-
prontera,150,150,0 script Sample 100,{ if ( countiem( 501 ) < 10 || !countitem( 514 ) ) { mes "You need 10 apple and 1 grape"; close; } if ( !getcharid( 1 ) ) { mes "You don't have a party"; close; } if ( getpartyleader( getcharid( 1 ), 2 ) != getcharid( 0 ) ) { mes "You must be a party leader"; close; } delitem 501, 10; delitem 514, 1; warpparty "prontera",150,150,getcharid( 1 ); end;}
-
Why chrissy so cuteee <3
-
getmapxy( .@map$, .@x, .@y, 0 );warpparty .@map$, .@x, .@y, getcharid( 1 );
-
-
Cool ! +1 to this idea!
-
-
You should elaborate on what you really want. If you want to be helped by others. Help yourself first. Express your request by giving a detailed description. A mere title wouldn't help that much on script people around.
-
mes "You currently have "+countbound()+" bounded items."; next; mes "The list of bounded items include:"; for(set .@i,0; .@i<getarraysize(@bound_items); set .@i,.@i+1) mes getitemname(@bound_items[.@i]); close;
-
Let's try this one :
- script LuckyPick -1,{ OnPCLoginEvent: .aid[getarraysize(.aid)] = getcharid(3); end; OnPCLogoutEvent: for ( .@i = 0; .@i < getarraysize(.aid); .@i++ ) { if ( .aid[.@i] == getcharid(3) ) deletearray .aid[.@i], 1; } end; OnMinute00: .@t++; if ( .@t % 2 ) end; .@i = rand(getarraysize(.aid)); if (attachrid(.aid[.@i])) getitem 501, 1, .aid[.@i]; end;}
@EDIT : Trigger every 2 hours
-
-
Very nice
-
Could you please elaborate?
When a certain player kill a mob and that mob drop a card, the player gain points.
-
Read the description of the topic starter before concluding that the answer is flawed or something
-
Congrats to those who got promoted. Keep up the good work
-
AFAIK this can't be done through scripting alone.
-
I think he is referring to bio lab quest.
-
Might probably want to use OnPCLoginEvent label?
-
or should i say efficient?
-
Probably an absurd answer : his while loop is much slightly faster than your for loop in terms of execution time
-
-
getinventorylist;for( set .@i,0; .@i < @inventorylist_count; set .@i, .@i + 1 ) { if ( @inventorylist_identify[.@i] == 1 ) continue; delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0; getitem @inventorylist_id[.@i],1;}if ( !getbrokenid(1) ) close;atcommand "@repairall";
Add this
-
prontera,150,150,0 script Sample 100,{ query_sql "SELECT DISTINCT(`account_id`) FROM `char` WHERE `online` = '1'",.@aid; for ( .@i = 0; .@i < getarraysize(.@aid); .@i++ ) { if ( attachrid( .@aid[.@i] ) ) { if ( strcharinfo(3) == "prontera" ) cutin "kafra_07", 2; } } for ( .@x = 3; .@x > 0; .@x-- ) { announce "Count down : " +.@x,0; sleep 1000; } for ( .@y = 0; .@y < getarraysize(.@aid); .@y++ ) { if ( attachrid( .@aid[.@y] ) ) { if ( strcharinfo(3) == "prontera" ) cutin "", 255; } } end;}
Like this?
-
Might be a good idea to enclose that set for .@r in a do..while loop; if the item name does end up being "null", the user's item is taken and doesn't get anything lol.
do { .@r = rand(501, 700);} while (getitemname(.@r) != "null");
The delitem command is triggered when the item is not null otherwise it does nothing. though i can say a do while loop is a better approach
-
Redeemer NPC / Coupon NPC / Promotional NPC
in Script Requests
Posted · Edited by Patskie