Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/16/20 in all areas

  1. Source: https://github.com/trickyloki3/pj59 Platform: Linux / OSX Requirement: make, flex, bison, gcc This tool is use for translating item scripts into item descriptions. { bonus bAtkEle,Ele_Dark; bonus2 bAddEle,Ele_Ghost,15; bonus3 bAutoSpell,"MG_STONECURSE",3,100; bonus2 bAddEff,Eff_Stone,10; bonus bDex,3; } - id: 1138 name: Mysteltainn bonus: | Weapon endowed with Dark property. +15% Physical Damage vs. Ghost enemies. Add 10% chance to cast Level 3 Stone Curse for each weapon attack. Add 0.10% chance to inflict Stone on enemy for each weapon attack. DEX +3 Note: the item descriptions are based on rAthena in Renewal mode. The item descriptions can be changed by altering the template files, i.e. statement.yml, bonus.yml, sc_start.yml, etc. I realized that a specialty tool like this can be difficult to use. If you need help, then feel free to ask. I appreciate any feedback. If you want to see what the output looks like, then checkout the attached file. output.yml
    3 points
  2. Here is a better thing to do for your script. I made one myself instead of editing yours.. Anyways, I think you can understand this very clearly.. prontera,150,150,0 script NPC A 100,{ mes "Test.."; close2; if ( done_walking ) end; // trigger only once, cannot be triggered twice per character.. donpcevent "NPC B::OnNPCWalk"; sleep2 1000; // 1 sec delay before player walks unitwalk getcharid(3), 160, 158; done_walking = true; // sets done walking here.. end; } prontera,150,152,0 script NPC B 100,{ mes "Test"; close; OnNPCWalk: npcspeed 200; npcwalkto 160,160; sleep 5000; // pause for 5 sec.. then.. npcwalkto .x, .y; // walk back to orig position end; OnInit: getmapxy .map$, .x, .y, BL_NPC, strnpcinfo(0); // save orig position end; }
    1 point
  3. Instructions for adding custom monsters remain the same. You can use these monster ID: 21000...
    1 point
  4. Hello, For the guard moving before talking to it, remove the OnInit: When the player will talk to him it'll move then. For the character moving by script, I never worked on that.
    1 point
  5. Hello, I'd have done something like this: OnHour03: OnHour15: if ( gettime(4) == 6 || gettime(4) == 0) goto OnHappyHour3; if ( gettime(4) != 6 || gettime(4) != 0){ if(rand(1,2) == 1) goto OnHappyHour3; else goto OnHappyHour2; } (not tested)
    1 point
  6. To some degree this applies: Newer clients suffer from memory fragmentation and thread leaks. The increasing use of Lua also hampered the performance (as opposed to hardcoded tables). The compiler has also been changed many times in the last few years, which also has some impact on performance (different processors take advantage of different optimizations). For some time clients have been encrypted with Themida, which is not healthy for performance applications. At last the obvious reason: newer clients have more features, icons and other magic that have to be processed per frame.
    1 point
  7. line 97 for (.@i = 0; .@i < @inventorylist_count; ++.@i) { if (@inventorylist_id[.@i] == .@refineitemid && !@inventorylist_equip[.@i] && @inventorylist_card1[.@i] == 0 && @inventorylist_refine[.@i] == 0) { delitem @inventorylist_id[.@i], 1; } } this could delete more that what it need to refine an item , you see it will delete all the items , for example , you need 5 to refine and you have 10 , the 10 will be deleted also like 4 (.@safe = 10;)is not used in the script
    1 point
  8. Evening all, hope you're all well and staying safe! The Moderator Team have recently been set the mammoth task of combing through topics in the support areas and selecting the Best Answer, in an effort to help users in the future with their search for hidden knowledge! As there are more sections than there are moderators, we're looking for some fresh meat to add to our wonderful and knowledgeable team to help us do a bit of spring cleaning! You can apply here: https://rathena.org/staffapplications/ All applicants with have their forum account scrutinised by various members of staff - if you've had warning points applied to your account in the recent past, they will only count against you if you have been consistently receiving them. Apply now - rAthena wants you! Edit: I should specify, that Moderators are here to moderate the forum, not provide support on every topic that is started by our users. As such, Moderators do not require extensive knowledge in areas such as scripting, source modifications, PHP for FluxCP, etc. If you don't have knowledge in these areas, that's ok! All we need from you is to be able to act professionally, follow the Moderator Guidelines and use your common sense effectively. Moderators are here to moderate the forums - they're not support staff. Hope that clears things up.
    1 point
  9. So here's the story why i created something like this. well all of us surely want some custom items so we took some from other servers grf. and yes, A LOT OF THEM. but come on..... If you took hundreds of them, you will surely take time to edit the following 1. Item Names 2. accessoryid.lub 3. accname.lub 4. iteminfo.lua .. (well i haven't created this one yet since im still thinking of a way to make one faster) So what i created will help you to do the things i mentioned above. For now it's still on the make, and i want to ask if there are things you still want to make easy. Just reply!. This is still on beta, so currently NO BROWSE BUTTON but will surely put it there. and also "save file to" for generating lub.
    1 point
  10. Hellow! Now i'm starting a "Oficial-Based" server with git commands... i'm using git clone https://github.com/rathena/rathena.git ~/rathena to download the latest git from rathena... my doubt is: 1 - When someone update the master-branch, how can i update my git? 2 - If i make some changes in my source, i'll lost'em when update?
    1 point
  11. trunk/conf/battle/items.conf // How much time must pass between cash food uses? Default: 60000 (1 min) cashfood_use_interval: 60000
    1 point
×
×
  • Create New...