Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/12/19 in all areas

  1. Discord Rich Presence Hello rA, today I'm here to show you a client-plugin for RO that I made recently. This plugin is Discord-RPC or better known as Discord Rich Presence. What is Discord Rich Presence? So, basically, this plugin allows players to display basic information about their game in Discord, some examples: Main Menu In-Game Information User Configuration Player can configure the plugin editing 'RO Folder\config\discord_plugin.txt'. Some of the config: Enable Discord RPC. Show Map Information. Show Map's Cordinates. Show Base & Job Level. Known Limitations Currently this plugin only works in 2018-06-20 and 2018-06-21 RagExe.
    4 points
  2. Your item bonus script is too long. Your bonus script consist of 2280 characters. i even minimized it and used switch. still have 2104 characters. The longest bonus script i've seen so far on db is 669 characters which is krieger staff.. The solution i know so far is create a function for it and use callfunc on your item. Also your script should have "{ }" for every if/else if since its not a 1 liner.. Here's my solution Create a function script first. Load it then reloaditemdb. function script itembonus { switch(BaseJob){ case Job_Rogue: bonus2 bSkillAtk,"RG_RAID",25;bonus2 bSkillAtk,"RG_BACKSTAP",25;bonus5 bAutoSpell,"NPC_WIDESTONE",1,70,BF_WEAPON,0;break; case Job_Knight: bonus bAspdRate,10; bonus bCritical,15; bonus2 bSkillAtk,"KN_PIERCE",30; bonus2 bSkillAtk,"KN_BRANDISHSPEAR",30; bonus2 bSkillAtk,"KN_SPEARSTAB",30; bonus2 bSkillAtk,"KN_SPEARBOOMERANG",30;break; case Job_Crusader: bonus2 bSkillAtk,"CR_GRANDCROSS",30; bonus2 bSkillAtk,"CR_SHIELDBOOMERANG",10; bonus2 bSubClass,Class_Boss,25; bonus2 bSubSize,Size_Large,25;break; case Job_Monk: bonus3 bAutoSpell,"MO_CALLSPIRITS",1,20; bonus bHit,30; bonus bAspdRate,5; bonus2 bSkillAtk,"MO_COMBOFINISH",40; bonus2 bSkillCooldown,"MO_EXTREMITYFIST",20000;break; case Job_Priest: bonus bMaxSPrate,25; bonus2 bSkillAtk,"PR_MAGNUS",30; bonus2 bVariableCastrate,"PR_MAGNUS",-30; bonus bMatkRate,20; skill "ALL_ODINS_POWER",1;break; case Job_Hunter: bonus bCritical,15; bonus2 bSkillAtk,"HT_BLITZBEAT",30; bonus3 bAutoSpell,"HT_BLITZBEAT",5,500; bonus bLongAtkRate,10;break; case Job_Bard: bonus bLongAtkRate,10; bonus2 bSkillAtk,"BA_MUSICALSTRIKE",300; bonus4 bAutoSpellOnSkill,"BA_MUSICALSTRIKE","BA_PANGVOICE",1,1000;break; case Job_Dancer: bonus bLongAtkRate,10; bonus2 bSkillAtk,"DC_THROWARROW",300; bonus4 bAutoSpellOnSkill,"DC_THROWARROW","DC_WINKCHARM",1,1000;break; case Job_Wizard: bonus2 bSkillAtk,"WZ_EARTHSPIKE",40; bonus2 bVariableCastrate,"WZ_EARTHSPIKE",-25; bonus4 bAutoSpellOnSkill,"WZ_HEAVENDRIVE","WZ_EARTHSPIKE",5,2500; bonus2 bSubEle,Ele_Neutral,15;break; case Job_Sage: bonus2 bSkillAtk,"MG_THUNDERSTORM",40; bonus2 bVariableCastrate,"MG_THUNDERSTORM",-10; bonus bLongAtkDef,15; bonus2 bSkillAtk,"MG_NAPALMBEAT",40;break; case Job_Blacksmith: bonus bSplashRange,1; bonus bBaseAtk,50; bonus2 bSubEle,Ele_Neutral,15; bonus2 bSubEle,Ele_Fire,15; bonus2 bSkillAtk,"MC_MAMMONITE",20;break; case Job_Alchemist: bonus2 bSkillAtk,"AM_ACIDTERROR",20; bonus2 bSkillAtk,"AM_DEMONSTRATION",20; bonus2 bAddMonsterDropItem,929,2500;break; case Job_Assassin: bonus bAspdRate,5; bonus bCritAtkRate,20; bonus2 bIgnoreDefClassRate,Class_Normal,25; bonus2 bSkillAtk,"AS_SPLASHER",25;break; } return; } then here's the item_db 20507,C_Poring_Bag,Costume Poring Bag,4,0,,0,,0,,0,0xFFFFFFFF,63,2,8192,,1,0,16,{ callfunc "itembonus",BaseJob; },{},{}
    2 points
  3. Hi guys! I'm a newbie in scripting. Just started learning today and just need your help on what's wrong with this script that I made? I would really appreciate if you'll pin point my mistakes so that I will learn. Thank you! // Item Trader prontera,147,170,4 script Item Trader 622,{ mes "[Item Trader]"; mes "Hi! How can I help you?"; mes "Item Ticket = 100 Yggdrasil Berry"; mes "Item Ticket = 30 Poison Bottles"; menu "Item Ticket to Yggdrasil Berry", C_1, "Item Ticket to Poison Bottle", C_2, "Yggdrasil Berry to Item Ticket", C_3, "Poison Bottle to Item Ticket" C_4; C_1: if (checkweight(607,100) == 0 ) goto C_OW; if(countitem(7284)<1) goto C_NI; delitem 7284,1; getitem 607,100; mes "[Item Trader]"; mes "[There you go!]"; close; C_2: if (checkweight(678,30) == 0 ) goto L_OW; if(countitem(7284)<1) goto C_NI; delitem 7284,1; getitem 678,300; mes "[Item Trader]"; mes "[There you go!]"; close; C_3: if(countitem(607)<100) goto C_NI; delitem 607,100; getitem 7284,1; mes "[Item Trader]"; mes "[There you go!]"; close; C_4: if(countitem(678)<30) goto C_NI; delitem 678,30; getitem 7284,1; mes "[Item Trader]"; mes "[There you go!]"; close; C_OW mes "[Item Trader]"; mes "Sorry you're overweight"; close; C_NI: mes "[Item Trader]"; mes "[You don't have the items]"; close; }
    1 point
  4. You might try to change the folder inside data/logs/schemas/charmapdb and also data/logs/schemas/mapdb to your new ServerName. in default, the name = FluxRO since you installed using that ServerName before.
    1 point
  5. use unitkill() instead. percentheal aren't a good example although it do the same trick. { skilleffect "AC_CONCENTRATION",0; if (rand(100) < 50) unitkill getcharid(3); },{},{}
    1 point
  6. View File My Functions Collection Hello. I made these functions a lot time ago. I have a couple more but I think there are enough variations of them already. Well, here we go. The functions are: create_menu which_instance party_randomid party_getonline effect_xy For a list of examples and proper documentation please read the script! These things would look very ugly here. And, thanks to KingdomMT for the cute image I used. Submitter n0tttt Submitted 08/04/2017 Category Utilities Video Content Author n0tttt  
    1 point
×
×
  • Create New...