Jump to content
  • 0

Question

Posted

I'm kinda confused about scripting items and I read numerous guides including these ones:

https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/doc/item_db.txt

https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/doc/item_bonus.txt

But I still don't understand most of the numbers that are associated with the item scripting.

Like for example this:

//Wing
24000,Edens_Judgement,"Eden's Judgement",5,100,,10,,5,,1,0xFFFFFFFF,7,2,512,,,1,,{bonus2 bAddRace,7,15; bonus2 bAddEff,Eff_Stone,500; bonus2 bAddEff,Eff_Curse,1000; },{},{}

I don't understand the number sequence and the comma's and stuff.

I want to make an item with this effect:

+10 INT with +5%MATK

+10STR with +5%ATK

A headgear with 2 slots

Those are just examples of what I want but I'm really eager to learn item scripting myself. So far I'm only decent with NPC scripting and some source coding but want to widen my expertise.

I wish someone can explain to me thoroughly on how to exactly script items.

Thanks in advance.

4 answers to this question

Recommended Posts

Posted (edited)

item_db

id,name_english, name_japanese, type, price_buy, price_sell, weight, attack, defence, range, slots, equip_jobs, equip_upper, equip_genders, equip_locations, weapon_level, equip_level, refinable, view, script, equip_script, unequip_script

stat effect

{bonus bSTR, 2;}

(STR+2)

matk effect

{bonus bWeaponMatk,105;}

(I dont know how much it will increased =/ someone knows?)

more effects

{bonus bSTR, 2; bonus bWeaponMatk,105;}

(STR+2; bWeaponMatk+105)

CORRECT ME IF I'M WRONG PLEASE

Edited by tr0n

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...