Jump to content

All Activity

This stream auto-updates

  1. Today
  2. I don't know what's going on,I'm up like you said,help me.
  3. Jayz

    query_sql

    Solve error typo
  4. Good day! Can someone help me, to fix this error ? buildin_getunitdata: Error in Argument! Please give a variable to store value in Script: refer to this link: https://board.herc.ws/topic/15975-custom-unit-hp-bar-system/
  5. for ([email protected]=0; [email protected] < @inventorylist_count; [email protected]++) { if( @inventorylist_attribute[[email protected]] ){ [email protected][[email protected]] = @inventorylist_id[[email protected]]; [email protected]$ = [email protected]$ + getitemname(@inventorylist_id[[email protected]]) + ":"; [email protected]++; } } if ([email protected]) { mes "["+ [email protected]_name$ +"]"; mes "Oh wow, this is incredible!"; mes "You must take very good care of your things. None of your items are damaged!"; } next; [email protected] = select([email protected]$) - 1; mes "["+ [email protected]_name$ +"]"; mes "You are trying to repair the item "+getitemname([email protected][[email protected]]); next; if( select( "Yes","No" ) == 2 ) end; !!! repair (Help with the Formula of the specific/selected broked id?) mes "["+ [email protected]_name$ +"]"; mes "Okay! All done. Now, try to be a little more careful. Items have lives too you know."; close; I need help in identifying the correct formula in repairing a selected broken item from the menu. I tried... but it's not quite right.. the repaired item is the wrong selection... Anyhelp is appreciated.
  6. Try changing packetver & client What those commands do? Neither of them logs me out, my packetver is 20211103
  7. It’s important to treat your database as a backup. Everything should be backed up and it’s easy for people to accidentally delete items. It’s better to just delete the item_db_re than the actual item. nerdle
  8. Are you sure brother? Why Dagger and Katar is the same type?
  9. /*========================================== * @dropequip [FE] * Drop spesific equipment to the ground *------------------------------------------*/ ACMD_FUNC(dropequip) { int i; unsigned short pos; nullpo_retr(-1, sd); if (!message || !*message) { clif_displaymessage(fd, "Please enter equip location: @dropequip <equip_location>"); clif_displaymessage(fd, " 1: Head Low 2: Hand Right 4: Garment 8: Acc Left"); clif_displaymessage(fd, " 16: Armor 32: Hand Left 64: Shoes 128: Acc Right"); clif_displaymessage(fd, "256: Head Top 512: Head Mid"); return -1; } pos = atoi(message); for (i = 0; i < MAX_INVENTORY; i++) { if (sd->status.inventory[i].amount && sd->inventory_data[i]->equip&pos) { if(sd->status.inventory[i].equip&pos) { pc_unequipitem(sd, i, 3); pc_dropitem(sd, i, sd->status.inventory[i].amount); } //-Delete code below if you only want to drop an equipped item--- else if (!sd->status.inventory[i].equip) pc_dropitem(sd, i, sd->status.inventory[i].amount); //--------------------------------------------------------------- } } return 0; } Could someone help transform this code from 2012 atcommand to work in atcommand.cpp from rathena 2019? Thanks a lot the errors are related to ''status.inventory'' and status.inventory[i] equip%pos it looks like it has changed over time.
  10. Yesterday
  11. https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L2629 https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L3026 getiteminfo(getequipid(EQI_HAND_R),ITEMINFO_TYPE)
  12. Jayz

    query_sql

    new database structure where the hpoints store.. instead use acc_reg_num i want to use it for my web system
  13. Hyroshima

    query_sql

    what is the points_system table structure?
  14. How to write script for check if want to know weapon on player hands is dagger, sword, axe or bow?
  15. Have you experimented with different options yet? What is the best choice?
  16. Hello there. Right now the issue I'm having is, although the script is loading correctly server-wise (as in, not giving any errors in map-server), the NPC shows no options except for "Exit" when trying to select a quest. I have no idea how to fix this as of the time I'm writing this, hence why I'm asking for help. It's so frustrating when stuff like this happens after I tried customizing the script for hours on end... Thanks for any info! //===== 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 [email protected], getarraysize(getd("."+ currentquest$ + "_collectionitem")); for( set [email protected], 0; [email protected] < [email protected]; set [email protected],[email protected]+2){ mes "^FF0000"+getitemname(getd("."+currentquest$+"_collectionitem["[email protected]+"]"))+" - "+countitem(getd("."+currentquest$+"_collectionitem["[email protected]+"]"))+"/"+getd("."+currentquest$+"_collectionitem["+([email protected]+1)+"]")+" ea.^000000"; } mes "--------------------------------"; mes "[Reward]"; if (_collectionname$) == "Random Gathering (Random Reward): %" || (_collectionname$) == "Random Gathering (Random Reward List): %" { 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; } else { mes "Item: ^0000FF Player's Choice - "+getd("." +currentquest$+"_collectionamount")+" ea.^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 [email protected], getarraysize(getd("."+ currentquest$ + "_huntingmob")); for( set [email protected], 0; [email protected] < [email protected]; set [email protected],[email protected]+2){ set [email protected], getd("."+currentquest$+"_huntingmob["+([email protected])+"]"); mes "^FF0000"+strmobinfo(1,getd("."+currentquest$+"_huntingmob["[email protected]+"]"))+" - "+getd(currentquest$+"_"[email protected]+"_"+([email protected]+1)+"_killcount")+"/"+getd("."+currentquest$+"_huntingmob["+([email protected]+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 [email protected], 1; [email protected] < [email protected]; set [email protected],[email protected]+2){ set [email protected], getd("."+currentquest$+"_huntingmob["+([email protected])+"]"); setd(currentquest$+"_"[email protected]+"_"[email protected]+"_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 [email protected]$, ""; for( set [email protected],0; [email protected] < .collectionquestcount; set [email protected],[email protected]+1){ if ([email protected]) set [email protected]$,[email protected]$+":"; set [email protected]$, [email protected]$ + "[" + getd("." +([email protected]+1)+"_collectionmin") + " - " + getd("." +([email protected]+1)+"_collectionmax") + "] " + getd("." + ([email protected]+1) + "_collectionname$"); } set [email protected],select([email protected]$); if(.quest_repeat == true){ if(gettimetick(2) < getd([email protected] + "_collection_delay")){ mes "[^FF7700Questboard^000000]"; mes "You have to wait ^0000FF"+Time2Str(getd([email protected] + "_collection_delay"))+"^000000 to do this quest again."; close; } } else{ if(getd([email protected] + "_collection_repeat") == true){ mes "[^FF7700Questboard^000000]"; mes "You already did this quest."; mes "Please choose another one."; close; } } mes "[^FF7700Questboard^000000]"; mes "^0000FF"+getd("." + [email protected] + "_collectionname$")+"^000000"; mes "--------------------------------"; set [email protected], getarraysize(getd("."+ [email protected] + "_collectionitem")); for( set [email protected], 0; [email protected] < [email protected]; set [email protected],[email protected]+2){ mes "^FF0000"+getitemname(getd("."[email protected]+"_collectionitem["[email protected]+"]"))+" - "+getd("."[email protected]+"_collectionitem["+([email protected]+1)+"]")+" ea.^000000"; } mes "--------------------------------"; mes "[Reward]"; if (_collectionname$) == "Random Gathering (Random Reward): %" || (_collectionname$) == "Random Gathering (Random Reward List): %" { 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; } else { mes "Item: ^0000FF Player's Choice - "+getd("." +currentquest$+"_collectionamount")+" ea.^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("Accept:Decline") == 2){ close; } if(BaseLevel >= getd("." [email protected]+"_collectionmin") && BaseLevel <= getd("." [email protected]+"_collectionmax")){ mes "[^FF7700Questboard^000000]"; mes "Quest accepted."; set c_run, true; set currentquest$, [email protected]; close; } else{ mes "[^FF7700Questboard^000000]"; mes "You don't have the required"; mes "level to do this quest."; close; } case 2: set [email protected]$, ""; for( set [email protected],0; [email protected] < .huntingquestcount; set [email protected],[email protected]+1){ if ([email protected]) set [email protected]$,[email protected]$+":"; set [email protected]$, [email protected]$ + "[" + getd("." +([email protected]+1)+"_huntingmin") + " - " + getd("." +([email protected]+1)+"_huntingmax") + "] " + getd("." + ([email protected]+1) + "_huntingname$"); } set [email protected],select([email protected]$); if(.quest_repeat == true){ if(gettimetick(2) < getd([email protected] + "_hunting_delay")){ mes "[^FF7700Questboard^000000]"; mes "You have to wait ^0000FF"+Time2Str(getd([email protected] + "_hunting_delay"))+"^000000 to do this quest again."; close; } } else{ if(getd([email protected] + "_hunting_repeat") == true){ mes "[^FF7700Questboard^000000]"; mes "You already did this quest."; mes "Please choose another one."; close; } } mes "[^FF7700Questboard^000000]"; mes "^0000FF"+getd("." + [email protected] + "_huntingname$")+"^000000"; mes "--------------------------------"; set [email protected], getarraysize(getd("."+ [email protected] + "_huntingmob")); for( set [email protected], 0; [email protected] < [email protected]; set [email protected],[email protected]+2){ mes "^FF0000"+strmobinfo(1,getd("."[email protected]+"_huntingmob["[email protected]+"]"))+" - "+getd("."[email protected]+"_huntingmob["+([email protected]+1)+"]")+" ea.^000000"; } mes "--------------------------------"; mes "[Reward]"; mes "Item: ^0000FF"+((getd("." [email protected]+"_huntingprize"))?getitemname(getd("." [email protected]+"_huntingprize"))+" - "+getd("." [email protected]+"_huntingamount")+" ea.^000000":"Nothing^000000"); mes "Zeny: ^0000FF"+getd("." [email protected]+"_huntingzeny")+"^000000"; mes "Base EXP: ^0000FF"+getd("." [email protected]+"_huntingexp["+0+"]")+"^000000"; mes "Job EXP: ^0000FF"+getd("." [email protected]+"_huntingexp["+1+"]")+"^000000"; next; if(select("Accept:Decline") == 2){ close; } if(BaseLevel >= getd("." [email protected]+"_huntingmin") && BaseLevel <= getd("." [email protected]+"_huntingmax")){ mes "[^FF7700Questboard^000000]"; mes "Quest accepted."; set h_run, true; set currentquest$, [email protected]; 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 [email protected], getarraysize(getd("."+currentquest$+"_collectionitem")); for( set [email protected],0; [email protected] < [email protected]; set [email protected],[email protected]+2){ if(countitem(getd("."+currentquest$+"_collectionitem["[email protected]+"]"))>=getd("."+currentquest$+"_collectionitem["+([email protected]+1)+"]")){ set [email protected],[email protected]+2; } } if([email protected]<[email protected]){ mes "[^FF7700Questboard^000000]"; mes "You don't have everything."; close; } for( set [email protected],0; [email protected] < [email protected]; set [email protected],[email protected]+2){ delitem getd("."+currentquest$+"_collectionitem["[email protected]+"]"),getd("."+currentquest$+"_collectionitem["+([email protected]+1)+"]"); } if (_collectionname$) == ([email protected]$+"%"){ mes "[^FF7700Questboard^000000]"; mes "Congratulations! Select your prize:"; if (select([email protected]$,[email protected]$,[email protected]$,[email protected]$,[email protected]$) == 1) { [email protected] = [email protected]; } else if (select([email protected]$,[email protected]$,[email protected]$,[email protected]$,[email protected]$) == 2) { [email protected] = [email protected]; } else if (select([email protected]$,[email protected]$,[email protected]$,[email protected]$,[email protected]$) == 3) { [email protected] = [email protected]; } else if (select([email protected]$,[email protected]$,[email protected]$,[email protected]$,[email protected]$) == 4) { [email protected] = [email protected]; } else if (select([email protected]$,[email protected]$,[email protected]$,[email protected]$,[email protected]$) == 5) { [email protected] = [email protected]; } } else if (_collectionname$) == ([email protected]$+"%") { mes "[^FF7700Questboard^000000]"; mes "Congratulations! Select your prize:"; switch(select("Refining Supplies:")) { case 1: switch(select("Oridecon:Bradium:Elunium:Carnium")) { case 1: setd "[email protected]", 984; case 2: setd "[email protected]", 6224; case 3: setd "[email protected]", 985; case 4: setd "[email protected]", 6223; } } } else { mes "[^FF7700Questboard^000000]"; mes "Congratulations! 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 [email protected], getarraysize(getd("."+currentquest$+"_huntingmob")); set [email protected], [email protected]/2; for(set [email protected], 1; [email protected] < [email protected]; set [email protected],[email protected]+2){ set [email protected], getd("."+currentquest$+"_huntingmob["+([email protected])+"]"); if(getd(currentquest$+"_"[email protected]+"_"[email protected]+"_killcount")==getd("."+currentquest$+"_huntingmob["[email protected]+"]")){ set [email protected], [email protected]+1; if([email protected][email protected]){ goto L_checkmobs2; } continue; } goto L_checkmobs2; } L_checkmobs2: if([email protected]<[email protected]){ mes "[^FF7700Questboard^000000]"; mes "You didn't kill everything."; close; } mes "[^FF7700Questboard^000000]"; mes "Congratulation! Here is your Reward."; set [email protected], getarraysize(getd("."+currentquest$+"_huntingmob")); for(set [email protected], 1; [email protected] < [email protected]; set [email protected],[email protected]+2){ set [email protected], getd("."+currentquest$+"_huntingmob["+([email protected])+"]"); setd(currentquest$+"_"[email protected]+"_"[email protected]+"_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 [email protected], getarraysize(getd("."+currentquest$+"_huntingmob")); for(set [email protected], 1; [email protected] < [email protected]; set [email protected],[email protected]+2){ if(killedrid==getd("."+currentquest$+"_huntingmob["+([email protected])+"]")){ set [email protected], getd("."+currentquest$+"_huntingmob["+([email protected])+"]"); if(getd(currentquest$+"_"[email protected]+"_"[email protected]+"_killcount")<getd("."+currentquest$+"_huntingmob["[email protected]+"]")){ setd(currentquest$+"_"[email protected]+"_"[email protected]+"_killcount", getd(currentquest$+"_"[email protected]+"_"[email protected]+"_killcount")+1); dispbottom getd("."+currentquest$+"_huntingname$")+": ["+strmobinfo(1,[email protected])+"] ("+ getd(currentquest$+"_"[email protected]+"_"[email protected]+"_killcount")+"/"+getd("."+currentquest$+"_huntingmob["[email protected]+"]")+")"; } if(getcharid(1) != 0 && .party_support == true){ getmapxy([email protected]$,[email protected],[email protected]); set [email protected], getcharid(3); set [email protected]$, currentquest$; getpartymember getcharid(1),1; getpartymember getcharid(1),2; for(set [email protected], 0; [email protected] < [email protected]; [email protected]++){ if(isloggedin([email protected][[email protected]], [email protected][[email protected]])){ if(h_run==true && [email protected][[email protected]] != [email protected] && [email protected]$ == getvar(currentquest$, [email protected][[email protected]]) && readparam(HP, [email protected][[email protected]]) > 0){ getmapxy([email protected]$,[email protected],[email protected],BL_PC,rid2name([email protected][[email protected]])); if([email protected]$ == [email protected]$){ set [email protected]_amt,getvar(getd([email protected]$+"_"[email protected]+"_"[email protected]+"_killcount"), [email protected][[email protected]]); set [email protected]_goal,getd("."[email protected]$+"_huntingmob["[email protected]+"]"); if([email protected]_amt<[email protected]_goal) { setd([email protected]$+"_"[email protected]+"_"[email protected]+"_killcount", [email protected]_amt+1, [email protected][[email protected]]); dispbottom getd("."[email protected]$+"_huntingname$")+": ["+strmobinfo(1,[email protected])+"] ("+([email protected]_amt+1)+"/"[email protected]_goal+")", 0xB6FF00, [email protected][[email protected]]; } } } } } } break; } } end; OnInit: //Name of missions with random rewards [email protected]$ = "Random Gathering (Random Reward): "; [email protected]$ = "Random Gathering (Random Reward List): "; [email protected]$ = "Random Gathering (Normal Reward List): "; //Random number selections [email protected] = rand(1,8); [email protected] = rand(1,8); [email protected] = rand(1,8); [email protected] = rand(45,75); [email protected] = rand(45,75); [email protected] = rand(45,75); //Initializing SQL for random mission 1 query_sql("SELECT `id`,`drop"[email protected]+"_item`,`drop"[email protected]+"_rate` FROM `mob_db_re` WHERE `level` <= "+(BaseLevel+10)+" AND (`base_exp` > 0 OR `job_exp` > 0) AND class is null AND `drop"[email protected]+"_rate` >= 1000 ORDER BY rand() LIMIT 1", [email protected], [email protected]$, [email protected]); //Getting our random item from random mob for random reward mission 1 query_sql("SELECT `id` FROM `item_db_re` WHERE `name_aegis` = '"[email protected]$+"'", [email protected]); //Turning the aegis name into item id query_sql("SELECT `id` FROM `item_db_re` ORDER BY rand() LIMIT 1", [email protected]); //Random item reward for random mission 1 //Initializing SQL for random mission 2 query_sql("SELECT `id`,`drop"[email protected]+"_item`,`drop"[email protected]+"_rate` FROM `mob_db_re` WHERE `level` <= "+(BaseLevel+10)+" AND (`base_exp` > 0 OR `job_exp` > 0) AND class is null AND `drop"[email protected]+"_rate` >= 1000 ORDER BY rand() LIMIT 1", [email protected], [email protected]$, [email protected]); //Getting our random item from random mob for random reward (random list) mission 2 query_sql("SELECT `id` FROM `item_db_re` WHERE `name_aegis` = '"[email protected]$+"'", [email protected]); //Turning the aegis name into item id query_sql("SELECT `id`,`name_english` FROM `item_db_re` ORDER BY rand() LIMIT 1", [email protected], [email protected]$); //Random item reward 1 for random mission 2 query_sql("SELECT `id`,`name_english` FROM `item_db_re` ORDER BY rand() LIMIT 1", [email protected], [email protected]$); //Random item reward 2 for random mission 2 query_sql("SELECT `id`,`name_english` FROM `item_db_re` ORDER BY rand() LIMIT 1", [email protected], [email protected]$); //Random item reward 3 for random mission 2 query_sql("SELECT `id`,`name_english` FROM `item_db_re` ORDER BY rand() LIMIT 1", [email protected], [email protected]$); //Random item reward 4 for random mission 2 query_sql("SELECT `id`,`name_english` FROM `item_db_re` ORDER BY rand() LIMIT 1", [email protected], [email protected]$); //Random item reward 5 for random mission 2 //Initializing SQL for random mission 3 query_sql("SELECT `id`,`drop"[email protected]+"_item`,`drop"[email protected]+"_rate` FROM `mob_db_re` WHERE `level` <= "+(BaseLevel+10)+" AND (`base_exp` > 0 OR `job_exp` > 0) AND class is null AND `drop"[email protected]+"_rate` >= 1000 ORDER BY rand() LIMIT 1", [email protected], [email protected]$, [email protected]); //Getting our random item from random mob for normal reward mission query_sql("SELECT `id` FROM `item_db_re` WHERE `name_aegis` = '"[email protected]$+"'", [email protected]); //Turning the aegis name into item id 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; //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>,...); AddCollection(("Random Gathering (Random Reward): "+strmobinfo(1,[email protected])),BaseLevel,250,[email protected],([email protected] / 10),((strmobinfo(3,[email protected]) + strmobinfo(4,[email protected]) + strmobinfo(6,[email protected]) + strmobinfo(7,[email protected]))/20),((strmobinfo(6,[email protected]))*[email protected]*10000/[email protected]),((strmobinfo(7,[email protected]))*[email protected]*10000/[email protected]),[email protected],[email protected]); AddCollection(("Random Gathering (Random Reward List): "+strmobinfo(1,[email protected])),BaseLevel,250,[email protected],([email protected] / 10),((strmobinfo(3,[email protected]) + strmobinfo(4,[email protected]) + strmobinfo(6,[email protected]) + strmobinfo(7,[email protected]))/20),((strmobinfo(6,[email protected]))*[email protected]*10000/[email protected]),((strmobinfo(7,[email protected]))*[email protected]*10000/[email protected]),[email protected],[email protected]); AddCollection(("Random Gathering (Normal Reward List): "+strmobinfo(1,[email protected])),BaseLevel,250,[email protected],([email protected] / 10),((strmobinfo(3,[email protected]) + strmobinfo(4,[email protected]) + strmobinfo(6,[email protected]) + strmobinfo(7,[email protected]))/20),((strmobinfo(6,[email protected]))*[email protected]*10000/[email protected]),((strmobinfo(7,[email protected]))*[email protected]*10000/[email protected]),[email protected],[email protected]); //Add Hunting Quests here (You can add as many required mobs as you want) //AddHunting("<Quest Name>",<Min Lvl>,<Max Lvl>,<Reward|Item ID>,<Reward|Item Amount>,<Zeny Reward>,<Base EXP>,<Job EXP>,<Monster ID>,<Monster Amount>,...); AddHunting("There's a snake in my boot!",1,250,578,20,3500,20588,14063,1025,75); 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 [email protected], 6; set [email protected], getarraysize(getd("."+ .collectionquestcount + "_collectionexp")); setd ("." +.collectionquestcount+"_collectionexp["[email protected]+"]",getarg([email protected])); setd ("." +.collectionquestcount+"_collectionexp["+([email protected]+1)+"]",getarg([email protected]+1)); set [email protected], [email protected]+2; set [email protected], getarraysize(getd("."+ .collectionquestcount + "_collectionitem")); while(getarg([email protected],-1)!=-1 && getarg([email protected]+1,-1)!=-1){ setd ("."+.collectionquestcount+"_collectionitem["[email protected]+"]",getarg([email protected])); setd ("."+.collectionquestcount+"_collectionitem["+([email protected]+1)+"]",getarg([email protected]+1)); set [email protected],[email protected]+2; set [email protected], [email protected]+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 [email protected], getarraysize(getd("."+ .huntingquestcount + "_huntingexp")); set [email protected], 6; setd ("." +.huntingquestcount+"_huntingexp["[email protected]+"]",getarg([email protected])); setd ("." +.huntingquestcount+"_huntingexp["+([email protected]+1)+"]",getarg([email protected]+1)); set [email protected], [email protected]+2; set [email protected], getarraysize(getd("."+ .huntingquestcount + "_huntingmob")); while(getarg([email protected],-1)!=-1 && getarg([email protected]+1,-1)!=-1){ setd ("."+.huntingquestcount+"_huntingmob["[email protected]+"]",getarg([email protected])); setd ("."+.huntingquestcount+"_huntingmob["+([email protected]+1)+"]",getarg([email protected]+1)); set [email protected], [email protected]+2; set [email protected], [email protected]+2; } return; } }
  17. Hello, Can one can help me? I'am ready a lot of topics on forum, but can't fix this. PACKETSERVER 20180621 and make a diff exe on the same version, using ragexeRe. packet obsfucation is disabled on console. This only happen when i try to text "/mp" is the same of "/sp". /SP is work fine, but /mp make this error Sorry for my English. Thx.
  18. These days digital signage is undeniably in excess of an intricate banner; utilized accurately it can give constant information animate interest by vehicle wraps Hamilton offering additional data encompassing and correlative to items like recipes or choices.
  19. Yet, for the most recent or progressed cell phone, you need something astonishing or unique. At the point when proofpoint essentials the Apps come into the image, you want for an amazing look.
  20. Jayz

    query_sql

    Whats wrong here, this is actually working but have [Warning]: script:query_sql: Too many columns, discarding last 1 columns. In the part of UPDATE [email protected] = query_sql("SELECT `account_id` FROM `points_system` WHERE `account_id` = " + getcharid(3)); if ([email protected]) { query_sql("UPDATE `points_system` SET `hpoints` = (`hpoints` + "[email protected]+") WHERE `account_id` = "+getcharid(3)+" LIMIT 1"); } else { query_sql("INSERT INTO `points_system` (`account_id`, `hpoints`) VALUES (" + getcharid(3) + ", " + [email protected] + ")"); }
  21. Last week
  22. Never mind found the error; there was a single quote in my "./conf/groups.yml" file. Going to open a request for the sake of clear error message.
  23. I'm getting a strange error when I start up rathena under the newest build: Server is a 64 bit CentOS Linux release 8.5.2111 I for the life of me cant figure out what file would be parsed next to have no open quotes as db/re/attendance.yml doesn't have any quotes in it. Any ideas?
  24. Do you have a faster support channel? I sent a message on rathena and added to discord, but still no response.
  25. @meyraw Why is it hard to contact you? You hardly reply and I think you should hire staff
  26. So... Few issues... 1) As seen in picture 1, although the selected body palette (index 1) does display in equipment and skill windows showing that it is working (at least partially), it doesn't really apply to the actual character... 2) As seen in picture 2, I have both head and body shared palettes. As you may guess from the first picture, the new body script works just fine, but as you can see in pictures 3 and 4, the head script wasn't really updated to the new shared one. This is all done with WARP as patching tool in its latest version. Thanks for any and all info!
  1. Load more activity
×
×
  • Create New...

Important Information

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