Jump to content

sandbox

Members
  • Posts

    949
  • Joined

  • Last visited

  • Days Won

    16

Community Answers

  1. sandbox's post in SQL query/ How to replace a specific item from player inventory or equiped item was marked as the answer   
    If you mean via phpmyadmin..
    UPDATE `inventory` SET `nameid`=4444 WHERE `nameid`=8888; UPDATE `cart_inventory` SET `nameid`=4444 WHERE `nameid`=8888; UPDATE `storage` SET `nameid`=4444 WHERE `nameid`=8888; UPDATE `guild_storage` SET `nameid`=4444 WHERE `nameid`=8888;  
    If you want it via npc script, just add enclose them in
    query_sql()'
     
    Make sure your server is turned off.. And you have a backup.
  2. sandbox's post in Uknown unit layout at skill 2317 was marked as the answer   
    It's currently being worked on.
     
    http://rathena.org/board/tracker/issue-8711-error-message/
  3. sandbox's post in A script makes this map drop a certain item was marked as the answer   
    - script Gold -1,{
    OnNPCKillEvent:
    if(strcharinfo(3) == "prt_fild01") {
    getmapxy([email protected]$,[email protected],[email protected],0);
    set [email protected]_Chance,rand(1,10); //Configure for chance
    if([email protected]_Chance == 1) //10% chance. Change to '< 2' for 20%, etc..
    makeitem 969,1,[email protected]$,[email protected],[email protected];
    }
    end;
    }

  4. sandbox's post in Script that uses level and duration was marked as the answer   
    Just add this before the switch case..
     
    if(Upper != 0) end;
  5. sandbox's post in Mapflag was marked as the answer   
    For old versions, check > conf/mapflag/nopvp.txt
    For new, npc/mapflag/nopvp.txt
  6. sandbox's post in noob question updating your server was marked as the answer   
    If your SVN is so old it can't walk by itself (kidding) you have to download the latest version and apply all the changes you made from your old files.. MANUALLY. Yep, it's a pain in the arse!
  7. sandbox's post in What is our latest svn update? was marked as the answer   
    That's because they are not using SVN anymore. rAthena is now using Github
    https://github.com/rathena/rathena/commits/master
  8. sandbox's post in Up skill Fire Bolt, Cold Bolt was marked as the answer   
    In src/map/battle.c
    Find
    case MG_FIREBOLT: case MG_COLDBOLT: case MG_LIGHTNINGBOLT: if ( sc && sc->data[SC_SPELLFIST] && mflag&BF_SHORT ) { skillratio += (sc->data[SC_SPELLFIST]->val4 * 100) + (sc->data[SC_SPELLFIST]->val2 * 50) - 100;// val4 = used bolt level, val2 = used spellfist level. [Rytech] ad.div_ = 1;// ad mods, to make it work similar to regular hits [Xazax] ad.flag = BF_WEAPON|BF_SHORT; ad.type = 0; } break; Add before `break;`
    skillratio += XYZ; //Replace XYZ with desired percentage of damage to increase..
  9. sandbox's post in setcart function unequip remove item baselevel was marked as the answer   
    Use `callfunc GetCart;`on OnEquip script
    function GetCart { if (BaseLevel <= 40) setcart 1; else if (BaseLevel > 40 && BaseLevel < 66) setcart 2; else if (BaseLevel > 65 && BaseLevel < 81) setcart 3; else if (BaseLevel > 80 && BaseLevel < 91) setcart 4; else  if (BaseLevel > 90) setcart 5; return; }  
    For your 2nd question yes, `setcart 0;` would work on OnUnequip.
  10. sandbox's post in need script warper was marked as the answer   
    No need to request, that's already implemented. Just enable it in your NPC script configuration..
     
    https://github.com/rathena/rathena/blob/master/npc/custom/warper.txt
  11. sandbox's post in Help with my Item Prize Giver was marked as the answer   
    Try this
    announce [email protected]$+" has rewarded Package "+getd(".Package"+$itemreward$[[email protected]+1]+"["[email protected]+"]")+" "+getd(".Package"+$itemreward$[[email protected]+1]+"["+([email protected]+1)+"]")+"pc(s). for Winning Event!",0;
  12. sandbox's post in Job Changer + Baby Job Changer was marked as the answer   
    Euphy is da man.
     
    http://rathena.org/board/topic/64394-%E2%9C%B0-euphys-scripts-%E2%9C%B0/
  13. sandbox's post in Sword cursor on maps where not pvp or gvg was marked as the answer   
    I think noshift is on.. Try toggling /ns
  14. sandbox's post in Changed maxlevel, OP mobs was marked as the answer   
    Well there is one thing.. Try reducing all mob's HP via monster.conf there are also other configurations there that might help you.
  15. sandbox's post in Change Reverberation Max Unit was marked as the answer   
    Find
    2414,9,6,2,-1,0x3,1,5,1,yes,0,0x80,3,none,0,0x0, WM_REVERBERATION,Reverberation Replace (Can cast up to 10)
    2414,9,6,2,-1,0x3,1,5,1,yes,0,0x80,10,none,0,0x0, WM_REVERBERATION,Reverberation
  16. sandbox's post in How to fix this? was marked as the answer   
    Read the bug fix related to your problem
     
    http://rathena.org/board/tracker/issue-8674-item-bonus-error-or-not/
  17. sandbox's post in G_Mobs was marked as the answer   
    Mostly, they are used as dummies for slaves(ex. MVP summons) or some quests that requires to kill specific monsters. Notice that they do not have any drop, because they are intended to be placeholders for existing monsters
  18. sandbox's post in can someone help me.. how to fix this? was marked as the answer   
    As the error message says, you are missing an SQL table on your database.. Is this a fresh installation? If so, then try to submit a new query for the tables.
  19. sandbox's post in Why im not Wearing GM CLOTHES? was marked as the answer   
    You don't need to update your group ID to have a GM suit, just update your clientinfo.xml using <admin> tags.
     
    Read this guide..
    http://rathena.org/wiki/Clientinfo.xml
  20. sandbox's post in PvP Ladder "Death was marked as the answer   
    You didnt change anything >_>
     
    find
    set #PVPDeathsAccount, ;  
    replace
     
    set #PVPDeathsAccount,#PVPDeathsAccount+1;
  21. sandbox's post in How to Restart Server for data safe ? was marked as the answer   
    IME.
     
    @kickall > @mapexit > stop > restart
  22. sandbox's post in request bloody branch quest :) was marked as the answer   
    Test and edit as you please.
     
    mes "1 Bloody Branch = 100 Dead Branch + 10mZ"; next; if(countitem(604) < 100 || Zeny < 10000000) { mes "Not enough requirements"; close; } mes "Here you go"; delitem 604,100; set Zeny,10000000; getitem 12103,1; close;
  23. sandbox's post in Request Costume NPC was marked as the answer   
    read the quote below.. you can add this on NPCs and item scripts..
     
    in your case for example, you can add the setlook/changelook function in the OnEquip area of the Valkyrie Helm entry in item_db into Apple o' Archer
     
    5171,Valkyrie_Helm,Valkyrie Helm,5,100000,,1000,,5,,1,0xFFFFFFFE,2,2,256,,0,1,225,{ setlook 4,72; bonus bMdef,5; if(isequipped(2357,2421,2524)) bonus bAllStats,1; },{},{}  
    You can also work on it via client side, if you're going to add more items, just copy the resource data(idnum2itemdesctable, itemresnametable, etc.) then change the sprite ID in the item db, that way it would look like a Valkyrie Helm in your inventory but it would display AoA when equipped.
     
     
  24. sandbox's post in Instance specific event was marked as the answer   
    replace the if statement with this..
     
    if(@map$ != instance_mapname("abyss_03")) end;  
    Sorry if I can't test it, I don't have a functioning SVN anymore
  25. sandbox's post in Summoning or calling party members to party leader's location was marked as the answer   
    Why arent you using the 1st code?
     
     
    Try adding this one?
    atcommand "@partyrecall "+strcharinfo(1);
×
×
  • Create New...

Important Information

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