-
Posts
2407 -
Joined
-
Last visited
-
Days Won
52
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Everything posted by Capuche
-
What did you do to fix your previous error ?
-
- script hjklm -1,{ OnInit: setarray .@tmp$, "geffen","payon";// yours map's name restricted for( ; .@i < getarraysize( .@tmp$ ); .@i++ ) setmapflag .@tmp$, mf_loadevent; .map_restrict$ = implode( .@tmp$, "#" ); end; OnPCLoadMapEvent: if ( !getskilllv(10000) && compare( .map_restrict$,strcharinfo(3) ) ) { dispbottom "your guild doesn't have lvl 1 approval"; warp "prontera",0,0; } end; }
-
or something like that .@count = query_sql( "SELECT `account_id` FROM `char` WHERE `char`.`online` = '1'", .@num ); for( .@i = 0; .@i < .@count; .@i++ ) getitem .@give_this_id, .@at_this_quantity, .@num[ .@i ]; query_sql("SELECT `account_id` FROM `login` DESC LIMIT 0,1", .@num); you select all account id in database but array limit is 128 rows EDIT:
-
for( .@i = 2000000; .@i < 3000000; .@i++) { if( !isloggedin(.@i) ) end; attachrid(.@i); getitem .@give_this_id, .@at_this_quantity; detachrid; } Make a loop of 1 million is a very bad solution on my computer a loop of 50 000 take 1 min and the increase isn't linear Moreover mapserv will stop the loop if it seems infinite also if( !isloggedin(.@i) ) end; == if not online, the loop end : all online player wouldn't have the reward
-
This script search 1 item ID you want in the inventory of the player you want (online or offline)
-
// Area Coordination <x1>,<y1>,<x2>,<y2>; setarray .Coordinate,144,174,149,169; The script make a loop +1 x then +1 y for( set .@x,.Coordinate[0]; .@x <= .Coordinate[2]; set .@x,.@x + 1 ) for( set .@y,.Coordinate[1]; .@y <= .Coordinate[3]; set .@y,.@y + 1 ){ so x1 must be < x2 and y1 < y2 in the setting
-
or like this ? (lol) prontera,159,180,5 script hjkl 456,{ input .@name$; atcommand "@accinfo "+ .@name$; close; }
-
atcommand "@guild "+.@gname$; if the name is already used, the serveur send a message to the player which used @guild just to point it out
-
PK: Drop random item(backpack & equipment)
Capuche replied to merlini's question in Scripting Support
pvp_nightmaredrop also works when kill by monster ( but a small edit in pc.c...) -
Check if you forgot something conf/maps_athena.conf map: 1@guild db/map_index.txt 1@guild update your mapcache.dat (I hope you did well) Client side data/[email protected] data/[email protected] data/[email protected] update your data/resnametable.txt If your client doesn't ignore missing file, update your resnametable.txt with [email protected]#[email protected]# [email protected]#[email protected]# [email protected]#[email protected]# À¯ÀúÀÎÅÍÆäÀ̽º\map\[email protected]#À¯ÀúÀÎÅÍÆäÀ̽º\map\[email protected]# and add this bmp in data folder texture.rar EDIT: fix a typo the instance didn't end http://pastebin.com/raw.php?i=JsbG3fJp
-
How to make the MVP bosses instant respawn?
Capuche replied to zmref's question in Scripting Support
if you are really curious search in doc/script_commands.txt from line 144 to 184 -
This topic seems to satisfy your request and more http://www.eathena.ws/board/index.php?showtopic=231474
-
Update your topic with solved
-
I change gettime(4) into gettime(4)*2 + ( gettime(3) > 12 ? 1 : 0 ) .@t = gettime(4)*2 + ( gettime(3) > 12 ? 1 : 0 ); else if ( gettime(4)*2 + ( gettime(3) > 12 ? 1 : 0 ) != .@t ) { else if( #the_day_today == gettime(4)*2 + ( gettime(3) > 12 ? 1 : 0 ) ) { #the_day_today = gettime(4)*2 + ( gettime(3) > 12 ? 1 : 0 ); And split each day to morning and evening setarray .week$, "Sunday", "Sunday PM", "Monday", "Monday PM", "Tuesday", "Tuesday PM", "Wednesday", "Wednesday PM", "Thursday", "Thursday PM", "Friday", "Friday PM", "Saturday", "Saturday PM"; setarray .req_item0, 501, 501,1, 502,1;// sunday setarray .req_item1, 501, 501,10, 502,20, 503,30, 504, 40;// sunday PM etc.. setarray .req_item2, 501, 501,1, 502,1; setarray .req_item3, 501, 501,1, 502,1; setarray .req_item4, 501, 501,1, 502,1; setarray .req_item5, 501, 501,1, 502,1; setarray .req_item6, 501, 501,1, 502,1; setarray .req_item7, 501, 501,1, 502,1; setarray .req_item8, 501, 501,10, 502,20, 503,30, 504, 40; setarray .req_item9, 501, 501,1, 502,1; setarray .req_item10, 501, 501,1, 502,1; setarray .req_item11, 501, 501,1, 502,1; setarray .req_item12, 501, 501,1, 502,1; setarray .req_item13, 501, 501,1, 502,1; Example : gettime(4)*2 + ( gettime(3) > 12 ? 1 : 0 ) It's sunday 11:00 AM : gettime(4) is 0, gettime(3) is < 12, so .@t is 0 setarray .req_item0, 501, 501,1, 502,1;// sunday is called It's sunday 13:00 : gettime(4) is 0, gettime(3) is > 12, so .@t is 1 setarray .req_item1, 501, 501,10, 502,20, 503,30, 504, 40;// sunday PM etc.. is called...
-
Use triggers (no need OnTouch for NPC ID 45 with triggers) prontera,160,180,0 script lun002 45,2,2,{ if (BaseLevel < 100) mes "I need to be level 100 and above"; else warp "prontera",21,12; close; }
-
Try this http://pastebin.com/raw.php?i=VHzQzLjL
-
It's easy to make item script (but it takes time) you can find all informations about bonus here trunk/doc/item_bonus.txt
-
http://pastebin.com/raw.php?i=EWcS12eL I just change // set Zeny, Zeny + @prace_zeny*6; set #PoringRacePoints, #PoringRacePoints + @prace_zeny*6;//Poring Race Points and p1: set #PoringRacePoints, #PoringRacePoints -@prace_zeny; set @prace_winner$,"Poring"; goto Ready; p2: set #PoringRacePoints, #PoringRacePoints -@prace_zeny; set @prace_winner$,"Angeling"; goto Ready; p3: set #PoringRacePoints, #PoringRacePoints -@prace_zeny; set @prace_winner$,"Metaling"; goto Ready; p4: set #PoringRacePoints, #PoringRacePoints -@prace_zeny; set @prace_winner$,"Deviling"; goto Ready; p5: set #PoringRacePoints, #PoringRacePoints -@prace_zeny; set @prace_winner$,"Santa Poring"; goto Ready; p6: set #PoringRacePoints, #PoringRacePoints -@prace_zeny; set @prace_winner$,"Poporing"; goto Ready; and remove the cheat (lol) With this, players can bet Poring Race Points and gain news points
-
Try this one http://pastebin.com/raw.php?i=Bdrmzr1X
-
// time limit (sec) of the instance per level - Normal, Hard, Hardcore, Nightmare setarray .timelimit[ 1 ], 1800, 2700, 3600, 4500; .max_players = 4; // max players in the party Done // Time (min) / round / difficulty setarray .time_Normal[ 1 ], 1,2,3,4,5,6,7,8,9,10; setarray .time_Hard[ 1 ], 2,4,6,8,10,12,14,16,18,20; setarray .time_Hardcore[ 1 ], 3,6,9,12,15,18,21,24,27,30; setarray .time_Nightmare[ 1 ], 4,8,12,16,20,24,28,32,36,40; // Number ( monsters / round / difficulty ) initialized setarray .mob_init_Normal[ 1 ], 1, 2, 3, 4, 5, 6, 7, 8, 9, 10; setarray .mob_init_Hard[ 1 ], 2, 3, 4, 5, 6, 7, 8, 9, 10, 12; setarray .mob_init_Hardcore[ 1 ], 3, 4, 5, 6, 7, 8, 9, 10, 11, 13; setarray .mob_init_Nightmare[ 1 ], 5, 6, 7, 8, 9, 10, 12, 14, 16, 20; with mob ID / round / difficulty // Mob ID / round // Level : Normal setarray .mob_ID_Normal_round1[ 0 ], 1002,1005,1004;// poring, hornet, familiar setarray .mob_ID_Normal_round2[ 0 ], 1002,1005; setarray .mob_ID_Normal_round3[ 0 ], 1002,1005,1004; setarray .mob_ID_Normal_round4[ 0 ], 1002,1005,1004; setarray .mob_ID_Normal_round5[ 0 ], 1002,1005,1004,1005; setarray .mob_ID_Normal_round6[ 0 ], 1002,1005,1004; setarray .mob_ID_Normal_round7[ 0 ], 1002,1005,1004; setarray .mob_ID_Normal_round8[ 0 ], 1002,1005,1004; setarray .mob_ID_Normal_round9[ 0 ], 1002,1005,1004; setarray .mob_ID_Normal_round10[ 0 ], 1002,1005,1004; // Level : Hard setarray .mob_ID_Hard_round1[ 0 ], 1002,1005,1004; setarray .mob_ID_Hard_round2[ 0 ], 1002,1005,1004; setarray .mob_ID_Hard_round3[ 0 ], 1002,1005,1004; // Hero ( points / round / difficulty ) - using #hero_points variable setarray .hero_points_Normal[ 1 ], 100,110,120,130,140,150,160,170,180,200; setarray .hero_points_Hard[ 1 ], 120,140,160,180,200,220,240,260,280,300; setarray .hero_points_Hardcore[ 1 ], 150,180,210,240,270,300,330,360,390,420; setarray .hero_points_Nightmare[ 1 ], 200,250,300,350,400,450,500,550,600,700; Rank is weird here if the players can do the instance in party. Example : 4 players complete a round, they are all in top ranking -->> weird so I didn't put a rank script: http://pastebin.com/raw.php?i=N3x7cBG6 http://pastebin.com/raw.php?i=9cUxYghF map: client_side.rar don't forget to update your mapcache.dat EDIT: I forgot the function
-
atcommand "@allstats -20000";// remove all stats atcommand "@allstats 254"; Where exactly do you want to to put this ? @Yudax atcommand "@allstats"; he must set max stat to 255 for this
-
There was another topic like your request, if you want to read it
-
Basic_Scripting
-
setarray .MainMenu$[0], // Set menu options! "Change Jobs", // [1] "Stylist", // [2] "Refiner", // [4] "Remove Cards", // [8] "Exchange Coins", // [16] "Rentals", // [32] "Reset Stats/Skills", // [64] "Platinum Skills", // [128] "Change Sex", // [256] "Identify All"; // [512] set .MenuOption,1|2|4|8|16|32|64|128|256|512; for example if you don't want *menu Identify All remove 512 from .MenuOption set .MenuOption,1|2|4|8|16|32|64|128|256;
-
if you want to remove item bonus stats for all players you can used