Jump to content

sader1992

Content Moderator
  • Content Count

    1,517
  • Avg. Content Per Day

    1
  • Joined

  • Last visited

  • Days Won

    56

Everything posted by sader1992

  1. prontera,0,0,0 script Clear-Monsters 444,{ if(!getmapunits(BL_MOB,strnpcinfo(4))){ mes "no monsters in this map!"; end; } [email protected] = 10000000; mes "do you like to clear all the monsters in this map ?"; mes "It will cost you " + F_InsertComma([email protected]) + "z"; if(select("Yes:No") == 2) end; clear; if(Zeny < [email protected]){ mes "you don't have " + F_InsertComma([email protected]) + "z"; end; } Zeny -= [email protected]; killmonsterall(strnpcinfo(4)); mes "Done!"; end; }
  2. prontera,0,0,0 script Clear-Monsters 444,{ [email protected] = 10000000; mes "do you like to clear all the monsters in this map ?"; mes "It will cost you " + F_InsertComma([email protected]) + "z"; if(select("Yes:No") == 2) end; clear; if(Zeny < [email protected]){ mes "you don't have " + F_InsertComma([email protected]) + "z"; end; } Zeny -= [email protected]; killmonsterall(strnpcinfo(4)); mes "Done!"; end; }
  3. conf/import/char_conf.txt login_ip: 127.0.0.1 char_ip: your_ip conf/import/map_conf.txt char_ip: 127.0.0.1 map_ip: your_ip
  4. // Heroes of Vanaheim ==================== //======================================== - script at_veil_cmd -1,{ OnVeilWarp: if(agitcheck() || agitcheck2() || agitcheck3()){ mes "you can't use this command while the WoE is running!"; end; } warp "veil",120,145; end; OnInit: bindatcmd "veil", strnpcinfo(0)+"::OnVeilWarp"; }
  5. 1) no , you will get the source code , and it's up to you to compile it , and set it up , also you wont get a ready to play client , you would have to do this by your self too , however if you follow the guides in the forum , excluding the download time , you can set up a local server in less then 10 min , everything depend on your experience 2) yes , you have to install some kind of sql 3) Always/Never , well , it's hard to tell , you see the updates , if it's a bug , and it would effect your server , you would want to apply it to your server , right ? if it's a public server , you should use git commands always , and you can update your server like once a week , of once a month , the longer the time you wait the more updates you would have to apply, I wouldn't recommend more then a month , however if your server is fully customized , I wouldn't suggest a normal update, in that case , 1st i would suggest to try to get your copy as stabile as possible , by applying fixes only , you would reach a point where most of the fixes on rathena for things that you didn't apply to your server anyway 4) it's a database, so it's very easy again everything depend on your experience , everything could take around 10 minutes or 10 weeks I would just suggest to follow rathena wiki first , and if there is anything you didn't understand , or you are stuck , you can search the forum. Home · rathena/rathena Wiki (github.com)
  6. thanks for the report , I will fix the reward function soon.
  7. prontera,0,0,0 script npcccc 444,{ if(!#ONEITEMPERACC){ mes "here is your item"; #ONEITEMPERACC = true; getitem(502,1); }else{ mes "you already got your item"; } end; } if you mean a specific account get 1 item one time prontera,0,0,0 script npcccc 444,{ if(getcharid(3) != 2000000){//account id here mes "your account doesn't match"; end; } if(!#ONEITEMPERACC){ mes "here is your item"; #ONEITEMPERACC = true; getitem(502,1); }else{ mes "you already got your item"; } end; }
  8. if the item is only for vip accounts , you can edit the item script it self to not work if the player is not a vip account, then leave the rented items to disappear on it's own.
  9. get 1 item per any character ? prontera,0,0,0 script npcccc 444,{ if(!ONEITEMPERCHAR){ mes "here is your item"; ONEITEMPERCHAR = true; getitem(502,1); }else{ mes "you already got your item"; } end; } get an item for specific character id ? prontera,0,0,0 script npcccc 444,{ if(getcharid(0) == 1500000){//char id here mes "here is your item"; getitem(502,1); }else{ mes "your character id does not match!"; } end; }
  10. if anyone have anymore question , he can send it to Functor in the PM.
  11. -1: Invalid type. -2: Character/Party/Guild/Clan not found. -3: Instance already exists. -4: No free instances (MAX_INSTANCE exceeded).
  12. int64 value = pc_readregistry(sd, reference_uid(add_str("VARIABLE"), 0)); 0 = THE Index if you are using array , if not leave it 0
  13. well , it's all about how you use the os you need to know the basic like how to install programs , check the programs configuration , permissions , and files management there is no direct guide because you don't see how to "install a program" guide for windows, and you don't need that guide because I would assume "you just know how" even if there is some useless guides like that , each program have it's own things so you need to learn the basic and follow this Install on Debian · rathena/rathena Wiki (github.com) I recommend debian 9 for the high payment for who installed your server , well it's normal I don't think you would ask bill gates to install windows in your pc for one or two digit USD xD it's the nerds tax
  14. [8000] = { unidentifiedDisplayName = "Scarf", unidentifiedResourceName = "Scarf", unidentifiedDescriptionName = { "..." }, identifiedDisplayName = "Scarf", identifiedResourceName = "Scarf", identifiedDescriptionName = { "Item Custom Nidhoggur.", "Class:^6666CC Costume^000000", "Location:^6666CC Lower headgear^000000", "Weight:^006600 100^000000", "Level Requirement:^006600 1^000000", "Jobs:^6666CC All^000000" }, slotCount = 1, ClassNum = 1882 },
  15. drop sprite/icon/collection and the line in the item info should not start with _
  16. also the player must be online try this prontera,150,114,4 script God Connection 811,{ mes "You can bring to life a old friend if you have a God item gift."; if(select("use:close") == 2) end; input [email protected]$; getunits(BL_PC,[email protected]$); if(inarray([email protected]$,[email protected]$) == -1){ mes "Player does not exist or offline"; mes "Player must be online!"; end; } if(countitem(6293) < 1){ mes "you don't have " + getitemname(6293); mes "you need 1 " + getitemname(6293); end; } if(atcommand("@unjail "[email protected]$)){ delitem 6293,1; mes "your friend is now released!"; end; } mes "something went wrong!"; mes "contact the GM!"; end; }
  17. it's not a good idea to delete items directly from the database also it's better if the server was offline when you edit the database
  18. it's already in Emistry's reply put doevent "vip_group_main::OnSetVIP"; into the item script, whatever the item id is
  19. same as Emistry's script , just add timer instead of the vip status - script vip_group_main -1,{ OnSetVIP: #TEMP_GROUP_V = gettimetick(2) + (7 * 24 * 60 * 60);//time in seconds OnPCLoginEvent: if (#TEMP_GROUP_V > gettimetick(2)) { atcommand "@adjgroupid 7"; [email protected] = #TEMP_GROUP_V - gettimetick(2); addtimer ([email protected] * 1000), strnpcinfo(3)+"::OnExpire"; dispbottom "Temp Group Expire in "+gettimestr("%Y-%m/%d %H:%M:%S",21,#TEMP_GROUP_V); } end; OnExpire: atcommand "@adjgroupid 0"; end; }
  20. I didn't test it // credits to Annieruru - script Stylist -1,{ if(vip_status(VIP_STATUS_ACTIVE)) setarray [email protected]_style,getbattleflag( "max_hair_style" ),getbattleflag( "max_hair_color" ),getbattleflag( "max_cloth_color" ); else setarray [email protected]_style,29,80,180; cutin "hairstyle_"+Sex, 3; mes .npc_name$; mes "Eu posso mudar sua aparência."; if( .item_size ){ mes " "; mes "^777777[ TAXAS DO SERVIÇO ]^000000"; for( [email protected] = 0; [email protected] < .menu_size; [email protected]++ ) if( .npc_mode & ( 1 << [email protected] ) ) if( .item[[email protected]] ) mes "^0055FF"+.menu_name$[[email protected]]+" : ^777777"+ .item[[email protected]] +" x "+getitemname(7420)+"^000000"; else mes "^0055FF"+.menu_name$[[email protected]]+" : ^777777Free of Charge^000000"; } next; [email protected] = ( select( .npc_menu$ ) - 1 ); [email protected]_value = getlook( .look_type[[email protected]] ); deletearray [email protected]; switch( [email protected] ){ Case 0: [email protected]$ = ","+getd( ".blacklist_hairstyle_"+Sex+"$" )+","; break; Case 1: [email protected]$ = ","+getd( ".blacklist_haircolor_"+Sex+"$" )+","; break; Case 2: [email protected]$ = ","+getd( ".blacklist_clothe_"+Sex+"$" )+","; break; default: break; } [email protected]_number = .min_style[[email protected]]; do{ next; mes .npc_name$; mes "Current "+.menu_name$[[email protected]]+" : ^0055FF"[email protected]_number+"th^000000"; mes " "; [email protected] = 0; if( compare( [email protected]$,","[email protected]_number+"," ) ){ mes "^FF0000NOTE : This style REMOVED^000000"; [email protected] = 1; setlook .look_type[[email protected]],.min_style[[email protected]]; }else{ setlook .look_type[[email protected]],[email protected]_number; if( .item[[email protected]] ){ mes "Cost : ^777777"+ .item[[email protected]] +" x "+getitemname(7420)+"^000000"; mes " "; } } [email protected] = [email protected]_number + 1; [email protected] = [email protected]_number - 1; if( [email protected] > [email protected]_style[[email protected]] ) [email protected] = .min_style[[email protected]]; if( [email protected] < .min_style[[email protected]] ) [email protected] = [email protected]_style[[email protected]]; [email protected] = prompt( "Próximo - [ ^777777"[email protected]+"th Style^000000 ]", "Voltar - [ ^777777"[email protected]+"th Style^000000 ]", "Pular para...", ( [email protected] )?"":"^0055FFCerto, eu quero esse "+.menu_name$[[email protected]]+"^000000" ); switch( [email protected] ){ Case 1: [email protected]_number = [email protected]; break; Case 2: [email protected]_number = [email protected]; break; Case 3: mes "Available Style : ^0055FF"+.min_style[[email protected]]+" ~ "[email protected]_style[[email protected]]+"^000000."; input [email protected]_number,.min_style[[email protected]],[email protected]_style[[email protected]]; break; Case 4: if( [email protected]_value == [email protected]_number ){ mes "Swt..this is your original hairstyles."; } else if( .item[[email protected]] && countitem(7420) < .item[[email protected]] ){ mes "Você não tem suficientes "+getitemname(7420)+" para mudar a "+.menu_name$[[email protected]]+"."; }else{ mes "Aproveite seu ^0055FFNEW "+.menu_name$[[email protected]]+" !!"; if( .item[[email protected]] ) delitem 7420, .item[[email protected]]; [email protected]_value = [email protected]_number; } default: setlook .look_type[[email protected]],[email protected]_value; break; } }while( [email protected] != 4 && [email protected] != 255 ); close; OnInit: waitingroom "[Estilista]",0; // NPC name .npc_name$ = "[^0055FF ::: Estilista ::: ^000000]"; // NPC Mode ( Bitmask ) // 1 - Enable Hairstyle // 2 - Enable Hair Color // 4 - Enable Cloth Color .npc_mode = 7; // Menu Name setarray .menu_name$, "Estilo do Cabelo", "Cor do Cabelo", "Cor da Roupa"; // Payment (7420) setarray .item, 5, // Hairstyle 5, // Hair Color 5; // Cloth Color // Blacklisted Style for each style and each gender. // --- Female --- .blacklist_hairstyle_0$ = "2,4,6"; .blacklist_haircolor_0$ = "1,3,5"; .blacklist_cloth_0$ = "143,188,261"; // --- Male --- .blacklist_hairstyle_1$ = "3,5,7"; .blacklist_haircolor_1$ = "2,4,6"; .blacklist_cloth_1$ = "143,188,261"; // Dont edit setarray .min_style,getbattleflag( "min_hair_style" ),getbattleflag( "min_hair_color" ),getbattleflag( "min_cloth_color" ); .menu_size = getarraysize( .menu_name$ ); .item_size = getarraysize( .item ); setarray .look_type,LOOK_HAIR,LOOK_HAIR_COLOR,LOOK_CLOTHES_COLOR; for( .npc_menu$ = ""; [email protected] < .menu_size; [email protected]++ ) .npc_menu$ = .npc_menu$ + ( ( .npc_mode & ( 1 << [email protected] ) )? .menu_name$[[email protected]]:"" ) +":"; end; } // NPC Lists prontera,175,202,4 duplicate(Stylist) Estilista#4 878
  21. i think there is a data.grf in herc's forum that was optimized , search for it i think it's around 800m to 1.5gig however you have to add to it your edits/translation/etc
  22. this is a hidden npc , related to moscovia's quest it's not a bug
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.