Jump to content

All Activity

This stream auto-updates

  1. Past hour
  2. Hi. I'm trying to achieve this too now that I read your request, It made me remember that a while ago I wanted to do something like what you explained. Here's what I have so far (Only supports Novice). /*========================================== * Update skill_lv for player sd * Skill point allocation *------------------------------------------*/ void pc_skillup(map_session_data *sd,uint16 skill_id) { uint16 idx = skill_get_index(skill_id); nullpo_retv(sd); if (!idx) { if (skill_id) ShowError("pc_skillup: Player attempts to level up invalid skill '%d'\n", skill_id); return; } // If user tries to put points in a skill other than NV_BASIC while NV_BASIC is not maxed if(skill_id > NV_BASIC && sd->status.skill[NV_BASIC].lv < skill_tree_get_max(NV_BASIC, sd->status.class_)){ StringBuf *nov_msg = StringBuf_Malloc(); StringBuf_Printf(nov_msg, "You must spend %d skillpoints on Basic Skill in Novice skill tree first", skill_tree_get_max(NV_BASIC, sd->status.class_)); clif_displaymessage(sd->fd, StringBuf_Value(nov_msg)); StringBuf_Free(nov_msg); // Do not spend the point // return; } ... Rest of the function ... } Oh btw, please select "C / C++..." when posting code using the code widget so the code is at least a bit highlighted and more readable.
  3. Today
  4. Is anyone else having problems with barters that look like the one in this picture?
  5. You’ll find the sprite name in the corresponding column, usually like Golden_Peco. What do you think of?
  6. I want to be able to show a warning if a player is trying to allocate a skill point on a higher job tab. For example, a player resets their skills, normally you won't be able to allocate your skill point to your 4th job tab if you havent spent enough skpoint in all your 1st, 2nd, and 3rd job tab. It would be very nice to be able to show a warning that basically says: "You need to spend %d skill point(s) before spending it on your xx job tab" I have tried doing it myself, but I just can't seem to get it right. Am I right to tinker with this specific block on src/map/pc.cpp I'm reading the function pc_calc_skilltree_normalize_job_sub as well, but I can't grasp it. Anyone willing to help me?
  7. You should provide information to members of group X before giving cashpoint.
  8. Thanks for the answer @Brynner I tried update my translations files from chris folder (data and system), but nothing changed unfortunately.
  9. Stimmt, das hatte ich ja auch angesprochen. Es ist einfach dann sehr viel Inhalt und auch relativ komplex. Dessen sollte man sich aber finde ich bewusst sein, wenn man Pre-Renewal benutzen möchte. Ich finde solche Sachen werden oft übersehen oder unterschätzt. Deswegen sind viele Server sehr ähnlich oder setzen diese Dinge nicht vernünftig um.
  10. Yesterday
  11. Good day! Just want to share the script that i made so far, it's called city investment, this quest is from Kro. The quest is to hunt or to deliver things to npc. devided into 3 clases, A, B, C quest. and the quest will be randomly given every day at 4 am. each day only be able to do 1 quest delivery and 1 hunting boss quest. Hunting boss quest will be reset every wednesday 4 am, after you done quest, you will gain achievement point. the more you do quest your level of alliance will be increase, and you can do higher rank of delivery quest and get more token. The token can be trade to union gear. for full detail you can read it here City Investment & Union Gears [Hazy Forest] or watch my video . This script i made it based on playing Kro.
  12. there is no exact formula, depends on you, but you can try generator here : https://x-files.amirazman.my/customfilegenerator
  13. There is no correct formula it depends on how you setup your server
  14. I'm still confused about the YML format. I was trying to find a correct pre-renewal formula with base level: 255, job level: 120 and max stats: 255. job_exp.yml & statpoint.yml
  15. is trying to distribute cashpoints to party members. It checks if the player is online, on the right map, and then adds 100 cashpoints to them.
  16. Last week
  17. The player is talking to the NPC in the original (non-instanced) map. The script is supposed to be used only inside the instance. You're right. The NPC is too far from the edge for you to see it. I'm able to see it because my view range is increased. You could move it to somewhere closer, make it cloaked and uncloak just for GMs/ADMs. I added the option to count weekly entrances. You still need to change the cooldown time of the quest. If you want to try it, replace the whole Stone NPC. e_tower,81,105,0 script Tower Protection Stone 2_MONEMUS,{ $@etower_allow_reenter = true; //Allow reentering same Endless Tower. (true/false) $@etower_weekly_type = 1; // 0=no weekly limit. 1=distinct ET weekly entry limit. 2=gain points weekly limit. $@etower_weekly_limit = 3; //how many times per week at max? // GM Bypass //============================================================ if(getgroupid() > 90){ mes "GM Options"; next; switch(select("Main Menu", "Reset Cooldowns", "Destroy Instance")){ case 1: break; case 2: if(isbegin_quest(60200)) erasequest(60200); if(isbegin_quest(60201)) erasequest(60201); etower_timer = 0; //etower_instanceid = 0; etower_weekly_count = 0; etower_week_cd = 0; etower_year_cd = 0; end; case 3: if(instance_id(IM_PARTY)) instance_destroy instance_id(IM_PARTY); end; } } //============================================================ set .@party_id, getcharid(1); getpartymember .@party_id, 1; set .@online_members_count, $@partymembercount; set .@md_name$,"Endless Tower"; set .@etower_timer,checkquest(60200,PLAYTIME); // 1 week set .@etower_timer2,checkquest(60201,PLAYTIME); // 4 hours callfunc "F_Tower_Settings"; //if (!instance_check_party(.@party_id,2)) { // mes "Make or join a party with more than 1 member and try again."; // close; //} switch(.@etower_timer) { case -1: if ($@etower_weekly_type == 1 && $@etower_weekly_limit) { .@week = atoi(gettimestr("%V",5)); .@year = gettime(DT_YEAR); if (etower_week_cd != .@week || etower_year_cd != .@year) { etower_weekly_count = 0; } .@remaining = $@etower_weekly_limit - etower_weekly_count; mes "^0000ffYou can only enter " + ($@etower_allow_reenter?"distinct":"the") + " " + .@md_name$ + " " + ($@etower_weekly_limit>1?$@etower_weekly_limit + " times":"once") + " a week.^000000"; if (etower_weekly_count >= $@etower_weekly_limit) { next; switch(select("Difficulty Information","Return to Alberta","Cancel")) { case 1: callsub L_Info; case 2: mes "It is dangerous here. Let me move you to Alberta."; close2; warp "alberta",223,36; end; case 3: end; } } if (etower_weekly_count) mes "You can still enter " + (.@remaining!=1?.@remaining + " times":"once") + "."; } if (is_party_leader() == true) { mes "Confirmed the party has been made. Would you like to reserve entrance to the " + .@md_name$ + "?"; next; switch(select( ( .@party_id && getpartyleader(.@party_id,2) && !instance_id(IM_PARTY) )? "Generate dungeon "+.@md_name$:"", ( .@party_id && instance_id(IM_PARTY) )?"Enter the dungeon":"", "Return to Alberta", "Difficulty Information", "Cancel")){ case 1: // Difficulty //============================================================ .@level_mode = select( "[ Level 50+ ] Normal", "[ Level 100+ ] Veteran", "[ Level 150+ ] Nightmare", "[ Level 200+ ] Hell", "[ Level 240+ ] ^ff0000Torment^000000" ); $ENDLESSMODE[getcharid(1)] = .@level_mode; set .@required_level, 0; if (.@level_mode == 1) { .@required_level = 50; } else if (.@level_mode == 2) { .@required_level = 100; } else if (.@level_mode == 3) { .@required_level = 150; } else if (.@level_mode == 4) { .@required_level = 200; } else if (.@level_mode == 5) { .@required_level = 260; } if (!instance_check_party(getcharid(1), .@online_members_count, .@required_level)) { mes "All party members need to be at least Level " + .@required_level + " to enter."; close; } mes "Your party meets the Memorial Dungeon requirements."; announce "The party [ " + getpartyname(.@party_id) + " ] has registered "+.@md_name$+" on " + $@difficulty_mode$[.@level_mode] + ".", bc_all; instance_create("Endless Tower"); close; //============================================================= case 2: callsub L_Enter,0,1; case 3: mes "I will move you to Alberta."; close2; warp "alberta",223,36; end; case 4: callsub L_Info; case 5: close; } } switch(select("Enter the "+.@md_name$,"Difficulty Information","Return to Alberta","Cancel")) { case 1: callsub L_Enter,0,1,1; case 2: callsub L_Info; case 3: mes "I will move you to Alberta."; close2; warp "alberta",223,36; end; case 4: end; } case 0: case 1: if ($@etower_allow_reenter && .@etower_timer2 < 2 && etower_instanceid == instance_id(IM_PARTY) && instance_live_info(ILI_NAME,instance_id(IM_PARTY)) == .@md_name$) { mes "If you have the dungeon generated already, you can enter it. "; next; switch(select("Enter the "+.@md_name$,"Difficulty Information","Return to Alberta","Cancel")) { case 1: callsub L_Enter,0,0; case 2: callsub L_Info; case 3: mes "I will move you to Alberta."; close2; warp "alberta",223,36; end; case 4: close; } } .@dun_lim_time = etower_timer+604800; // 1 week // .@dun_lim_time2 = etower_timer+14400; // 4 hours set .@dun_cur_time,gettimetick(2); set .@dun_ent_t,(.@dun_lim_time - .@dun_cur_time); set .@dun_h,(.@dun_ent_t / 3600); set .@dun_m,(.@dun_ent_t - (.@dun_h * 3600)) / 60; set .@dun_s,.@dun_ent_t - ((.@dun_h * 3600) + (.@dun_m * 60)); if (.@dun_h > 23) mes "Due to the tower's aftereffects, you cannot enter the dungeon right now, " + Time2Str(.@dun_lim_time) + " left to enter the next dungeon."; else mes "Due to the tower's aftereffects, you cannot enter the dungeon right now, " + .@dun_h + "hours " + .@dun_m + "minutes " + .@dun_s + "seconds left to enter the next dungeon."; next; switch(select("Difficulty Information","Return to Alberta","Cancel")) { case 1: callsub L_Info; case 2: mes "It is dangerous here. Let me move you to Alberta."; close2; warp "alberta",223,36; end; case 3: end; } case 2: etower_timer = 0; erasequest 60200; erasequest 60201; if ($@etower_weekly_type == 1 && $@etower_weekly_limit) { mes "^0000ffThe after effects related to the Endless Tower have been removed.^000000"; .@week = atoi(gettimestr("%V",5)); .@year = gettime(DT_YEAR); if (etower_week_cd != .@week || etower_year_cd != .@year) { etower_weekly_count = 0; etower_week_cd = 0; etower_year_cd = 0; mes "^0000ffYou can generate and enter the Endless Tower again.^000000"; close; } mes "^0000ffBut there are stronger after effects. You can only enter " + ($@etower_allow_reenter?"distinct":"the") + " " + .@md_name$ + " " + (etower_weekly_count!=1?etower_weekly_count + " times":"once") + " a week.^000000"; .@remaining = $@etower_weekly_limit - etower_weekly_count; if (etower_weekly_count >= $@etower_weekly_limit) mes "^0000ffWait till next week.^000000"; else mes "^0000ffYou can still enter " + (.@remaining!=1?.@remaining + " times":"once") + " this week.^000000"; } else mes "^0000ffThe records and after effects related to the Endless Tower have been removed. You can generate and enter the Endless Tower again.^000000"; close; } L_Info: mes "[ Difficulty Information ]"; mes "^ff0000-------------------------------------------^000000"; mes "Difficulty Level: ^ff0000[ " + $@difficulty_mode$[1] + " ]^000000"; mes "Monster max hp: + ^ff0000[ " + $@easy_mode_variables[0] + "% ]^000000"; mes "Monster damage: + ^ff0000[ " + $@easy_mode_variables[1] + "% ]^000000"; mes "Monster takes less damage: ^ff0000[ " + $@easy_mode_variables[2] + "% ]^000000"; mes "Monster def: + ^ff0000[ " + $@easy_mode_variables[3] + "% ]^000000"; mes "Monster mdef: + ^ff0000[ " + $@easy_mode_variables[4] + "% ]^000000"; mes "Monster hit: + ^ff0000[ " + $@easy_mode_variables[5] + "% ]^000000"; mes "Monster flee: + ^ff0000[ " + $@easy_mode_variables[6] + "% ]^000000"; mes "Monster bonus exp reward: x ^ff0000[ " + $@bonus_exp[1] + " ]^000000"; mes ""+.@md_name$ +" Easy Points: + ^ff0000[ " + $@instance_points[1] + " ]^000000"; mes "^ff0000-------------------------------------------^000000"; next; mes "[ Difficulty Information ]"; mes "^ff0000-------------------------------------------^000000"; mes "Difficulty Level: ^ff0000[ " + $@difficulty_mode$[2] + " ]^000000"; mes "Monster max hp: + ^ff0000[ " + $@veteran_mode_variables[0] + "% ]^000000"; mes "Monster damage: + ^ff0000[ " + $@veteran_mode_variables[1] + "% ]^000000"; mes "Monster takes less damage: ^ff0000[ " + $@veteran_mode_variables[2] + "% ]^000000"; mes "Monster def: + ^ff0000[ " + $@veteran_mode_variables[3] + "% ]^000000"; mes "Monster mdef: + ^ff0000[ " + $@veteran_mode_variables[4] + "% ]^000000"; mes "Monster hit: + ^ff0000[ " + $@veteran_mode_variables[5] + "% ]^000000"; mes "Monster flee: + ^ff0000[ " + $@veteran_mode_variables[6] + "% ]^000000"; mes "Monster bonus exp reward: x ^ff0000[ " + $@bonus_exp[2] + " ]^000000"; mes ""+.@md_name$ +" Veteran Points: + ^ff0000[ " + $@instance_points[2] + " ]^000000"; mes "^ff0000-------------------------------------------^000000"; next; mes "[ Difficulty Information ]"; mes "^ff0000-------------------------------------------^000000"; mes "Difficulty Level: ^ff0000[ " + $@difficulty_mode$[3] + " ]^000000"; mes "Monster max hp: + ^ff0000[ " + $@nightmare_mode_variables[0] + "% ]^000000"; mes "Monster damage: + ^ff0000[ " + $@nightmare_mode_variables[1] + "% ]^000000"; mes "Monster takes less damage: ^ff0000[ " + $@nightmare_mode_variables[2] + "% ]^000000"; mes "Monster def: + ^ff0000[ " + $@nightmare_mode_variables[3] + "% ]^000000"; mes "Monster mdef: + ^ff0000[ " + $@nightmare_mode_variables[4] + "% ]^000000"; mes "Monster hit: + ^ff0000[ " + $@nightmare_mode_variables[5] + "% ]^000000"; mes "Monster flee: + ^ff0000[ " + $@nightmare_mode_variables[6] + "% ]^000000"; mes "Monster bonus exp reward: x ^ff0000[ " + $@bonus_exp[3] + " ]^000000"; mes ""+.@md_name$ +" Nightmare Points: + ^ff0000[ " + $@instance_points[3] + " ]^000000"; mes "^ff0000-------------------------------------------^000000"; next; mes "[ Difficulty Information ]"; mes "^ff0000-------------------------------------------^000000"; mes "Difficulty Level: ^ff0000[ " + $@difficulty_mode$[4] + " ]^000000"; mes "Monster max hp: + ^ff0000[ " + $@hell_mode_variables[0] + "% ]^000000"; mes "Monster damage: + ^ff0000[ " + $@hell_mode_variables[1] + "% ]^000000"; mes "Monster takes less damage: ^ff0000[ " + $@hell_mode_variables[2] + "% ]^000000"; mes "Monster def: + ^ff0000[ " + $@hell_mode_variables[3] + "% ]^000000"; mes "Monster mdef: + ^ff0000[ " + $@hell_mode_variables[4] + "% ]^000000"; mes "Monster hit: + ^ff0000[ " + $@hell_mode_variables[5] + "% ]^000000"; mes "Monster flee: + ^ff0000[ " + $@hell_mode_variables[6] + "% ]^000000"; mes "Monster bonus exp reward: x ^ff0000[ " + $@bonus_exp[4] + " ]^000000"; mes ""+.@md_name$ +" Hell Points: + ^ff0000[ " + $@instance_points[4] + " ]^000000"; mes "^ff0000-------------------------------------------^000000"; next; mes "[ Difficulty Information ]"; mes "^ff0000-------------------------------------------^000000"; mes "Difficulty Level: ^ff0000[ " + $@difficulty_mode$[5] + " ]^000000"; mes "Monster max hp: + ^ff0000[ " + $@torment_mode_variables[0] + "% ]^000000"; mes "Monster damage: + ^ff0000[ " + $@torment_mode_variables[1] + "% ]^000000"; mes "Monster takes less damage: ^ff0000[ " + $@torment_mode_variables[2] + "% ]^000000"; mes "Monster def: + ^ff0000[ " + $@torment_mode_variables[3] + "% ]^000000"; mes "Monster mdef: + ^ff0000[ " + $@torment_mode_variables[4] + "% ]^000000"; mes "Monster hit: + ^ff0000[ " + $@torment_mode_variables[5] + "% ]^000000"; mes "Monster flee: + ^ff0000[ " + $@torment_mode_variables[6] + "% ]^000000"; mes "Monster bonus exp reward: x ^ff0000[ " + $@bonus_exp[5] + " ]^000000"; mes ""+.@md_name$ +" Torment Points: + ^ff0000[ " + $@instance_points[5] + " ]^000000"; mes "^ff0000-------------------------------------------^000000"; close; L_Enter: addrid(2,0,getcharid(1)); .@party_id = getcharid(1); .@md_name$ = "Endless Tower"; .@etower_timer = checkquest(60200,PLAYTIME); // 1 week .@etower_timer2 = checkquest(60201,PLAYTIME); // 4 hours if (.@etower_timer == 2) { erasequest 60200; erasequest 60201; } if (strcharinfo(3) != strnpcinfo(4)) end; if ($@etower_allow_reenter && .@etower_timer2 < 2 && etower_instanceid == instance_id(IM_PARTY) && instance_live_info(ILI_NAME,instance_id(IM_PARTY)) == .@md_name$) .@reentering = true; else { if ($@etower_weekly_type == 1 && $@etower_weekly_limit) { .@week = atoi(gettimestr("%V",5)); .@year = gettime(DT_YEAR); if (etower_week_cd != .@week || etower_year_cd != .@year) { etower_weekly_count = 0; } else if (etower_weekly_count >= $@etower_weekly_limit) { mes "^0000ffThere are stronger after effects. You can only enter " + ($@etower_allow_reenter?"distinct":"the") + " " + .@md_name$ + " " + (etower_weekly_count!=1?etower_weekly_count + " times":"once") + " a week.^000000"; mes "^0000ffWait till next week.^000000"; close; } } if (.@etower_timer == 0 || .@etower_timer == 1) { mes "Due to the tower's aftereffects, you cannot enter right now."; open_quest_ui 60200; close; } } switch(instance_enter("Endless Tower",-1,-1,getcharid(0),instance_id(IM_PARTY))) { case IE_OTHER: mes "An unknown error has occurred."; close; case IE_NOINSTANCE: mes "The memorial dungeon Endless Tower does not exist."; mes "The party leader did not generate the dungeon yet."; close; case IE_NOMEMBER: mes "You can enter the dungeon after making the party."; close; case IE_OK: //if (getarg(1)) { if (!isbegin_quest(60200) && !.@reentering) { etower_timer = gettimetick(2); etower_instanceid = instance_id(IM_PARTY); setquest 60200; setquest 60201; etower_weekly_count++; etower_week_cd = .@week; etower_year_cd = .@year; } //warpparty instance_mapname("1@tower"),52,354,getcharid(1); //warp "1@tower",52,354; //if (getarg(0,0) == 0) close; end; } }
  18. The setting is commented out because the default value is different for pre-renewal and renewal. If you leave it commented out it will use the correct default value depending on whether you compiled on pre-re or renewal. Renewal clients have trouble displaying traps, has nothing to do with this setting. As far as I know traps are now invisible in renewal, so they don't really bother to properly show them on renewal clients anymore. Need to use 2021 or older client for them to display properly.
  19. You could do that via code changes. Or alternatively, you could just change the required exp in the job_exp database file.
  20. its works fine for me. try to update your translation files from chris.
  21. Hola. El script de Euphy fue pensado para funcionar con monstruos aleatorios. Si deseas tener control total sobre qué monstruos elegir, te recomiendo usar el sistema de misiones de Tr0n's Quest Board, que permite seleccionar exactamente los monstruos que quieras incluir. //Añade misiones de caza aquí (puedes agregar tantos mobs como quieras) //AddHunting("<Quest Name>",<Min Lvl>,<Max Lvl>,<Reward|Item ID>,<Reward|Item Amount>,<Zeny Reward>,<Base EXP>,<Job EXP>,<Monster ID>,<Monster Amount>,...); AddHunting("Eliminación de abejas",1,MAX_LEVEL,503,1,0,500,500,1004,10); // [Josemaaaaa] Chance de contar a kill (%) .count_chance = 50; //===== rAthena Script ======================================= //= tr0n's Questboard //===== By: ================================================== //= tr0n //===== Current Version: ===================================== //= 1.6.6 //===== Description: ========================================= //= Easily add collection and hunting quests. //===== Changelogs: ========================================== // 1.0.0 Release // 1.1.0 Added zeny reward // 1.2.0 Rewrote checkmob and killcounter // 1.3.1 Added level restriction // 1.3.4 Added Reward Item Amount // 1.4.4 Added Quest delay // 1.5.4 Added repeatable Quests // 1.6.4 Added party support // 1.6.5 Bug fixes for party support // 1.6.6 Bug fixes for delay time does not appear [mazvi] //============================================================ prontera,129,215,5 script Questboard 4_BOARD3,{ if(c_run==true){ mes "[^FF7700Questboard^000000]"; mes "^0000FF"+getd("." + currentquest$ + "_collectionname$")+"^000000"; mes "--------------------------------"; set .@size, getarraysize(getd("."+ currentquest$ + "_collectionitem")); for( set .@j, 0; .@j < .@size; set .@j,.@j+2){ mes "^FF0000"+getitemname(getd("."+currentquest$+"_collectionitem["+.@j+"]"))+" - "+countitem(getd("."+currentquest$+"_collectionitem["+.@j+"]"))+"/"+getd("."+currentquest$+"_collectionitem["+(.@j+1)+"]")+" ea.^000000"; } mes "--------------------------------"; mes "[Reward]"; mes "Item: ^0000FF"+((getd("." +currentquest$+"_collectionprize"))?getitemname(getd("." +currentquest$+"_collectionprize"))+" - "+getd("." +currentquest$+"_collectionamount")+" ea.^000000":"Nothing^000000"); mes "Zeny: ^0000FF"+getd("." +currentquest$+"_collectionzeny")+"^000000"; mes "Base EXP: ^0000FF"+getd("." +currentquest$+"_collectionexp["+0+"]")+"^000000"; mes "Job EXP: ^0000FF"+getd("." +currentquest$+"_collectionexp["+1+"]")+"^000000"; next; if(select("Finish:Abort") == 2){ mes "[^FF7700Questboard^000000]"; mes "Quest aborted."; set currentquest$, ""; set c_run, false; close; } goto L_checkitems; } if(h_run==true){ mes "[^FF7700Questboard^000000]"; mes "^0000FF"+getd("." + currentquest$ + "_huntingname$")+"^000000"; mes "--------------------------------"; set .@size, getarraysize(getd("."+ currentquest$ + "_huntingmob")); for( set .@j, 0; .@j < .@size; set .@j,.@j+2){ set .@currentmob, getd("."+currentquest$+"_huntingmob["+(.@j)+"]"); mes "^FF0000"+getmonsterinfo(getd("."+currentquest$+"_huntingmob["+.@j+"]"), MOB_NAME)+" - "+getd(currentquest$+"_"+.@currentmob+"_"+(.@j+1)+"_killcount")+"/"+getd("."+currentquest$+"_huntingmob["+(.@j+1)+"]")+" ea.^000000"; } mes "--------------------------------"; mes "[Reward]"; mes "Item: ^0000FF"+((getd("." +currentquest$+"_huntingprize"))?getitemname(getd("." +currentquest$+"_huntingprize"))+" - "+getd("." +currentquest$+"_huntingamount")+" ea.^000000":"Nothing^000000"); mes "Zeny: ^0000FF"+getd("." +currentquest$+"_huntingzeny")+"^000000"; mes "Base EXP: ^0000FF"+getd("." +currentquest$+"_huntingexp["+0+"]")+"^000000"; mes "Job EXP: ^0000FF"+getd("." +currentquest$+"_huntingexp["+1+"]")+"^000000"; next; if(select("Finish:Abort") == 2){ mes "[^FF7700Questboard^000000]"; mes "Quest aborted."; for(set .@x, 1; .@x < .@size; set .@x,.@x+2){ set .@currentmob, getd("."+currentquest$+"_huntingmob["+(.@x-1)+"]"); setd(currentquest$+"_"+.@currentmob+"_"+.@x+"_killcount", 0); } set currentquest$, ""; set h_run, false; close; } goto L_checkmobs; } mes "[^FF7700Questboard^000000]"; mes "Select category:"; next; switch(select((.collection)?"Collection Quests":"", (.hunting)?"Hunting Quests":"", "Exit")) { case 1: set .@collectmenu$, ""; for( set .@i,0; .@i < .collectionquestcount; set .@i,.@i+1){ if (.@i) set .@collectmenu$,.@collectmenu$+":"; set .@collectmenu$, .@collectmenu$ + "[" + getd("." +(.@i+1)+"_collectionmin") + " - " + getd("." +(.@i+1)+"_collectionmax") + "] " + getd("." + (.@i+1) + "_collectionname$"); } set .@selection,select(.@collectmenu$); if(.quest_repeat == true){ if(gettimetick(2) < getd(.@selection + "_collection_delay")){ mes "[^FF7700Questboard^000000]"; mes "You have to wait ^0000FF"+Time2Str(getd(.@selection + "_collection_delay"))+"^000000 to do this quest again."; close; } } else{ if(getd(.@selection + "_collection_repeat") == true){ mes "[^FF7700Questboard^000000]"; mes "You already did this quest."; mes "Please choose another one."; close; } } mes "[^FF7700Questboard^000000]"; mes "^0000FF"+getd("." + .@selection + "_collectionname$")+"^000000"; mes "--------------------------------"; set .@size, getarraysize(getd("."+ .@selection + "_collectionitem")); for( set .@j, 0; .@j < .@size; set .@j,.@j+2){ mes "^FF0000"+getitemname(getd("."+.@selection+"_collectionitem["+.@j+"]"))+" - "+getd("."+.@selection+"_collectionitem["+(.@j+1)+"]")+" ea.^000000"; } mes "--------------------------------"; mes "[Reward]"; mes "Item: ^0000FF"+((getd("." +.@selection+"_collectionprize"))?getitemname(getd("." +.@selection+"_collectionprize"))+" - "+getd("." +.@selection+"_collectionamount")+" ea.^000000":"Nothing^000000"); mes "Zeny: ^0000FF"+getd("." +.@selection+"_collectionzeny")+"^000000"; mes "Base EXP: ^0000FF"+getd("." +.@selection+"_collectionexp["+0+"]")+"^000000"; mes "Job EXP: ^0000FF"+getd("." +.@selection+"_collectionexp["+1+"]")+"^000000"; next; if(select("Accept:Decline") == 2){ close; } if(BaseLevel >= getd("." +.@selection+"_collectionmin") && BaseLevel <= getd("." +.@selection+"_collectionmax")){ mes "[^FF7700Questboard^000000]"; mes "Quest accepted."; set c_run, true; set currentquest$, .@selection; close; } else{ mes "[^FF7700Questboard^000000]"; mes "You don't have the required"; mes "level to do this quest."; close; } case 2: set .@huntmenu$, ""; for( set .@i,0; .@i < .huntingquestcount; set .@i,.@i+1){ if (.@i) set .@huntmenu$,.@huntmenu$+":"; set .@huntmenu$, .@huntmenu$ + "[" + getd("." +(.@i+1)+"_huntingmin") + " - " + getd("." +(.@i+1)+"_huntingmax") + "] " + getd("." + (.@i+1) + "_huntingname$"); } set .@selection,select(.@huntmenu$); if(.quest_repeat == true){ if(gettimetick(2) < getd(.@selection + "_hunting_delay")){ mes "[^FF7700Questboard^000000]"; mes "You have to wait ^0000FF"+Time2Str(getd(.@selection + "_hunting_delay"))+"^000000 to do this quest again."; close; } } else{ if(getd(.@selection + "_hunting_repeat") == true){ mes "[^FF7700Questboard^000000]"; mes "You already did this quest."; mes "Please choose another one."; close; } } mes "[^FF7700Questboard^000000]"; mes "^0000FF"+getd("." + .@selection + "_huntingname$")+"^000000"; mes "--------------------------------"; set .@size, getarraysize(getd("."+ .@selection + "_huntingmob")); for( set .@j, 0; .@j < .@size; set .@j,.@j+2){ mes "^FF0000"+getmonsterinfo(getd("."+.@selection+"_huntingmob["+.@j+"]"), MOB_NAME)+" - "+getd("."+.@selection+"_huntingmob["+(.@j+1)+"]")+" ea.^000000"; } mes "--------------------------------"; mes "[Reward]"; mes "Item: ^0000FF"+((getd("." +.@selection+"_huntingprize"))?getitemname(getd("." +.@selection+"_huntingprize"))+" - "+getd("." +.@selection+"_huntingamount")+" ea.^000000":"Nothing^000000"); mes "Zeny: ^0000FF"+getd("." +.@selection+"_huntingzeny")+"^000000"; mes "Base EXP: ^0000FF"+getd("." +.@selection+"_huntingexp["+0+"]")+"^000000"; mes "Job EXP: ^0000FF"+getd("." +.@selection+"_huntingexp["+1+"]")+"^000000"; next; if(select("Accept:Decline") == 2){ close; } if(BaseLevel >= getd("." +.@selection+"_huntingmin") && BaseLevel <= getd("." +.@selection+"_huntingmax")){ mes "[^FF7700Questboard^000000]"; mes "Quest accepted."; if (.count_chance > 0 && .count_chance < 100) mes "^FF0000Recuerda: cada vez que derrotes a un monstruo, hay una probabilidad del " + .count_chance + "% de que cuente para tu progreso.^000000"; set h_run, true; set currentquest$, .@selection; close; } else{ mes "[^FF7700Questboard^000000]"; mes "You don't have the required"; mes "level to do this quest."; close; } case 3: close; } L_checkitems: set .@size, getarraysize(getd("."+currentquest$+"_collectionitem")); for( set .@k,0; .@k < .@size; set .@k,.@k+2){ if(countitem(getd("."+currentquest$+"_collectionitem["+.@k+"]"))>=getd("."+currentquest$+"_collectionitem["+(.@k+1)+"]")){ set .@checkitem,.@checkitem+2; } } if(.@checkitem<.@size){ mes "[^FF7700Questboard^000000]"; mes "You don't have everything."; close; } for( set .@delcount,0; .@delcount < .@size; set .@delcount,.@delcount+2){ delitem getd("."+currentquest$+"_collectionitem["+.@delcount+"]"),getd("."+currentquest$+"_collectionitem["+(.@delcount+1)+"]"); } mes "[^FF7700Questboard^000000]"; mes "Congratulation! Here is your Reward."; if(getd("." +currentquest$+"_collectionprize")!=0) getitem(getd("." +currentquest$+"_collectionprize"),getd("." +currentquest$+"_collectionamount")); set Zeny,Zeny+getd("." +currentquest$+"_collectionzeny"); getexp getd("." +currentquest$+"_collectionexp["+0+"]"),getd("." +currentquest$+"_collectionexp["+1+"]"); setd(currentquest$ + "_collection_delay"),gettimetick(2)+.quest_delay; setd(currentquest$ + "_collection_repeat"),true; set currentquest$, ""; set c_run, false; close; L_checkmobs: set .@size, getarraysize(getd("."+currentquest$+"_huntingmob")); set .@goal, .@size/2; for(set .@i, 1; .@i < .@size; set .@i,.@i+2){ set .@currentmob, getd("."+currentquest$+"_huntingmob["+(.@i-1)+"]"); if(getd(currentquest$+"_"+.@currentmob+"_"+.@i+"_killcount")==getd("."+currentquest$+"_huntingmob["+.@i+"]")){ set .@checkmonster, .@checkmonster+1; if(.@checkmonster==.@goal){ goto L_checkmobs2; } continue; } goto L_checkmobs2; } L_checkmobs2: if(.@checkmonster<.@goal){ mes "[^FF7700Questboard^000000]"; mes "You didn't kill everything."; close; } mes "[^FF7700Questboard^000000]"; mes "Congratulation! Here is your Reward."; set .@size, getarraysize(getd("."+currentquest$+"_huntingmob")); for(set .@x, 1; .@x < .@size; set .@x,.@x+2){ set .@currentmob, getd("."+currentquest$+"_huntingmob["+(.@x-1)+"]"); setd(currentquest$+"_"+.@currentmob+"_"+.@x+"_killcount", 0); } if(getd("." +currentquest$+"_huntingprize")!=0) getitem(getd("." +currentquest$+"_huntingprize"),getd("." +currentquest$+"_huntingamount")); set Zeny, Zeny+getd("." +currentquest$+"_huntingzeny"); getexp getd("." +currentquest$+"_huntingexp["+0+"]"),getd("." +currentquest$+"_huntingexp["+1+"]"); setd(currentquest$ + "_hunting_delay"),gettimetick(2)+.quest_delay; setd(currentquest$ + "_hunting_repeat"),true; set currentquest$, ""; set h_run, false; close; OnNPCKillEvent: if(h_run!=true) end; set .@size, getarraysize(getd("."+currentquest$+"_huntingmob")); if (.count_chance > 0 && .count_chance < 100) { if (rand(1,100) > .count_chance) .@fail = true; } for(set .@i, 1; .@i < .@size; set .@i,.@i+2){ if(killedrid==getd("."+currentquest$+"_huntingmob["+(.@i-1)+"]")){ set .@currentmob, getd("."+currentquest$+"_huntingmob["+(.@i-1)+"]"); if(getd(currentquest$+"_"+.@currentmob+"_"+.@i+"_killcount")<getd("."+currentquest$+"_huntingmob["+.@i+"]")){ if (.@fail) dispbottom "[" + getd("."+currentquest$+"_huntingname$") + "] No se registró esta baja."; else { setd(currentquest$+"_"+.@currentmob+"_"+.@i+"_killcount", getd(currentquest$+"_"+.@currentmob+"_"+.@i+"_killcount")+1); //message strcharinfo(0), getd("."+currentquest$+"_huntingname$")+": ["+getmonsterinfo(.@currentmob, MOB_NAME)+"] ("+ getd(currentquest$+"_"+.@currentmob+"_"+.@i+"_killcount")+"/"+getd("."+currentquest$+"_huntingmob["+.@i+"]")+")"; message strcharinfo(0), getmonsterinfo(.@currentmob, MOB_NAME)+" ["+ getd(currentquest$+"_"+.@currentmob+"_"+.@i+"_killcount")+"/"+getd("."+currentquest$+"_huntingmob["+.@i+"]")+"]"; //unittalk getcharid(3), getmonsterinfo(.@currentmob, MOB_NAME)+" ["+ getd(currentquest$+"_"+.@currentmob+"_"+.@i+"_killcount")+"/"+getd("."+currentquest$+"_huntingmob["+.@i+"]")+"]",bc_self; } } if(getcharid(1) != 0 && .party_support == true){ getmapxy(.@map1$,.@x1,.@y1); set .@killerid, getcharid(3); set .@currentquest$, currentquest$; getpartymember getcharid(1),1; getpartymember getcharid(1),2; for(set .@j, 0; .@j < $@partymembercount; .@j++){ if(isloggedin($@partymemberaid[.@j], $@partymembercid[.@j])){ if(h_run==true && $@partymemberaid[.@j] != .@killerid && .@currentquest$ == getvar(currentquest$, $@partymembercid[.@j]) && readparam(HP, $@partymembercid[.@j]) > 0){ getmapxy(.@map2$,.@x2,.@y2,BL_PC,rid2name($@partymemberaid[.@j])); if(.@map1$ == .@map2$ && distance(.@x1,.@y1,.@x2,.@y2) < .party_range){ if (.@fail) dispbottom "[" + getd("."+.@currentquest$+"_huntingname$") + "] No se registró esta baja.","",$@partymembercid[.@j]; else { set .@kill_amt,getvar(getd(.@currentquest$+"_"+.@currentmob+"_"+.@i+"_killcount"), $@partymembercid[.@j]); set .@kill_goal,getd("."+.@currentquest$+"_huntingmob["+.@i+"]"); if(.@kill_amt<.@kill_goal) { setd(.@currentquest$+"_"+.@currentmob+"_"+.@i+"_killcount", .@kill_amt+1, $@partymembercid[.@j]); //message strcharinfo(0), getd("."+.@currentquest$+"_huntingname$")+": ["+getmonsterinfo(.@currentmob, MOB_NAME)+"] ("+(.@kill_amt+1)+"/"+.@kill_goal+")", 0xB6FF00, $@partymembercid[.@j]; message strcharinfo(0,$@partymembercid[.@j]), getmonsterinfo(.@currentmob, MOB_NAME)+" [ "+(.@kill_amt+1)+" / "+.@kill_goal+" ]"; //unittalk $@partymemberaid[.@j], getmonsterinfo(.@currentmob, MOB_NAME)+" [ "+(.@kill_amt+1)+" / "+.@kill_goal+" ]",bc_self; } } } } } } } break; } } end; OnInit: function AddCollection; function AddHunting; //Activate/Deactivate quest categories (true/1 - activated, false/0 - deactivated) set .collection, true; set .hunting, true; //Quest Delay (seconds) //24 hours = 86400 seconds set .quest_delay, 0; //Activate/Deactivate repeatable quests (true/1 - activated, false/0 - deactivated) set .quest_repeat, true; //Activate/Deactivate party support (true/1 - activated, false/0 - deactivated) set .party_support, true; //Max range for party support (+- x & y coordinations) set .party_range, 25; //Checks if quests are loaded (prevents out of index) if(.questsloaded==true) end; set .questsloaded, true; //Add Collection Quests here (You can add as many required items as you want) //AddCollection("<Quest Name>",<Min Lvl>,<Max Lvl>,<Reward|Item ID>,<Reward|Item Amount>,<Zeny Reward>,<Base EXP>,<Job EXP>,<Item ID>,<Item Amount>,...); //Añade misiones de caza aquí (puedes agregar tantos mobs como quieras) //AddHunting("<Quest Name>",<Min Lvl>,<Max Lvl>,<Reward|Item ID>,<Reward|Item Amount>,<Zeny Reward>,<Base EXP>,<Job EXP>,<Monster ID>,<Monster Amount>,...); AddHunting("Eliminación de abejas",1,MAX_LEVEL,503,1,0,500,500,1004,10); // [Josemaaaaa] Chance de contar a kill (%) .count_chance = 50; end; function AddCollection{ set .collectionquestcount,.collectionquestcount+1; setd ("." +.collectionquestcount+"_collectionname$", getarg(0)); setd ("." +.collectionquestcount+"_collectionmin", getarg(1)); setd ("." +.collectionquestcount+"_collectionmax", getarg(2)); setd ("." +.collectionquestcount+"_collectionprize", getarg(3)); setd ("." +.collectionquestcount+"_collectionamount", getarg(4)); setd ("." +.collectionquestcount+"_collectionzeny", getarg(5)); set .@argcount, 6; set .@size, getarraysize(getd("."+ .collectionquestcount + "_collectionexp")); setd ("." +.collectionquestcount+"_collectionexp["+.@size+"]",getarg(.@argcount)); setd ("." +.collectionquestcount+"_collectionexp["+(.@size+1)+"]",getarg(.@argcount+1)); set .@argcount, .@argcount+2; set .@size, getarraysize(getd("."+ .collectionquestcount + "_collectionitem")); while(getarg(.@argcount,-1)!=-1 && getarg(.@argcount+1,-1)!=-1){ setd ("."+.collectionquestcount+"_collectionitem["+.@size+"]",getarg(.@argcount)); setd ("."+.collectionquestcount+"_collectionitem["+(.@size+1)+"]",getarg(.@argcount+1)); set .@argcount,.@argcount+2; set .@size, .@size+2; } return; } function AddHunting{ set .huntingquestcount,.huntingquestcount+1; setd ("." +.huntingquestcount+"_huntingname$", getarg(0)); setd ("." +.huntingquestcount+"_huntingmin", getarg(1)); setd ("." +.huntingquestcount+"_huntingmax", getarg(2)); setd ("." +.huntingquestcount+"_huntingprize", getarg(3)); setd ("." +.huntingquestcount+"_huntingamount", getarg(4)); setd ("." +.huntingquestcount+"_huntingzeny", getarg(5)); set .@size, getarraysize(getd("."+ .huntingquestcount + "_huntingexp")); set .@argcount, 6; setd ("." +.huntingquestcount+"_huntingexp["+.@size+"]",getarg(.@argcount)); setd ("." +.huntingquestcount+"_huntingexp["+(.@size+1)+"]",getarg(.@argcount+1)); set .@argcount, .@argcount+2; set .@size, getarraysize(getd("."+ .huntingquestcount + "_huntingmob")); while(getarg(.@argcount,-1)!=-1 && getarg(.@argcount+1,-1)!=-1){ setd ("."+.huntingquestcount+"_huntingmob["+.@size+"]",getarg(.@argcount)); setd ("."+.huntingquestcount+"_huntingmob["+(.@size+1)+"]",getarg(.@argcount+1)); set .@argcount, .@argcount+2; set .@size, .@size+2; } return; } }
  22. Anyone else having the same problem and know how to fix it? i'm using: 2022-04-06_Ragexe ✓ Froggo RO Folder ✓ tried: msgstringtable.txt ✗ stylingshopinfo.lub ✗ hexed editor ✗
  23. Hola. El NPC puede mostrar un letrero encima con el número de usuarios que hay en la zona pero el comando waitingroom no acepta colores en el texto del letrero. Solo muestra texto plano, sin formato ni colores. //===== rAthena Script ======================================= //= NPC Zone Quest Warper //===== Current Version: ===================================== //= 1.0 First version. [Racaae] //============================================================ // Colores ejemplo // FF0000 = Rojo // 00FF00 = Verde // 0000FF = Azul // FFFF00 = Amarillo // FF00FF = Rosa // 00FFFF = Cian function script F_ZoneWarper { // getarg(0) : mapa de destino // getarg(1) : coordenada X del destino // getarg(2) : coordenada Y del destino // getarg(3) : nombre de la zona // getarg(4) : color del nombre de la zona (hexadecimal) // getarg(5) : rango del área para contar usuarios // getarg(6) : nombre del NPC .@map$ = getarg(0); .@x = getarg(1); .@y = getarg(2); if (getstrlen(getarg(4)) != 6) debugmes "Invalid color hex code in NPC " + getarg(6); else .@name$ = "^" + getarg(4); .@name$ += getarg(3) + "^000000"; mes "[" + getarg(6) + "]"; mes F_Hi; mes "¿Deseas visitar la " + .@name$ + "?"; if(select("Ir a la " + .@name$ , "Ir después") == 2) { clear; mes "[" + getarg(6) + "]"; mes "Puedes volver cuando quieras."; mes F_Bye; close3; } warp(.@map$, .@x, .@y); end; } prontera,160,181,5 script Guía de Zona#Cartas 4_F_KAFRA1,{ cutin "kafra_01",2; F_ZoneWarper(.map$,.x,.y,.zone_name$,.color$,.zonerange,strnpcinfo(1)); OnInit: //============================================ .zone_name$ = "Zona Quest Cartas"; // Nombre de la zona que aparecerá en el letrero .map$ = "aldebaran"; // Mapa de destino donde está la zona .x = 100; // Coordenada X dentro del mapa de destino .y = 120; // Coordenada Y dentro del mapa de destino .color$ = "70CC11"; // Color del nombre de la zona en formato hexadecimal .zonerange = 15; // Rango alrededor del punto (x,y) para contar usuarios presentes //============================================ //fallthough OnTimer5000: stopnpctimer; delwaitingroom; .@p = getareausers(.map$, (.x-.zonerange), (.y-.zonerange), (.x+.zonerange), (.y+.zonerange)); waitingroom .zone_name$ + " (" + .@p + " visitando)",0; initnpctimer; end; } prontera,160,185,5 script Guía de Zona#questSet 4_F_KAFRA4,{ cutin "kafra_04",2; F_ZoneWarper(.map$,.x,.y,.zone_name$,.color$,.zonerange,strnpcinfo(1)); OnInit: //============================================ .zone_name$ = "Zona de quest Set"; // Nombre de la zona que aparecerá en el letrero .map$ = "gonryun"; // Mapa de destino donde está la zona .x = 120; // Coordenada X dentro del mapa de destino .y = 100; // Coordenada Y dentro del mapa de destino .color$ = "0000FF"; // Color del nombre de la zona en formato hexadecimal .zonerange = 15; // Rango alrededor del punto (x,y) para contar usuarios presentes //============================================ //fallthough OnTimer5000: stopnpctimer; delwaitingroom; .@p = getareausers(.map$, (.x-.zonerange), (.y-.zonerange), (.x+.zonerange), (.y+.zonerange)); waitingroom .zone_name$ + " (" + .@p + " visitando)",0; initnpctimer; end; } function script F_Hi { return callfunc("F_Rand","¡Hola!","¡Buenas!","¡Buen día!","¿Cómo estás?","¡Hola por ahí!"); } function script F_Bye { return callfunc("F_Rand","Adiós. Hasta luego.","Nos vemos.","Hasta pronto.","¡Buena suerte!","¡Que tengas un buen día!","¡Chao chao!"); }
  24. Die Balance war zu Pre-Renewal Zeiten einfach viel besser. Alles hatte irgendwie einen Wert. Und Klassen haben sich gegenseitig ergänzt. Pre-Renewal ist nicht unbedingt an den Inhalt gebunden. Man könnte auch den ganzen Renewal Content überarbeiten und für Pre-Renewal balancen. Dann hat man das beste von beiden Welten. Kriegt aber leider kaum einer richtig hin.
  25. Tried everything and it works fine Survival race
  26. Hope there is an updated for latest git
  27. Does anyone know how I can remove the white color that appears behind the letters Basic Info, Inventory, Equip?
  28. Thanks for the idea, i got reference and made my own, and converted from Localhost to my VPS or Live Server, i will embed this too in SRC soon if i have time. Cosmos.mp4
  1. Load more activity
×
×
  • Create New...