Jump to content
  • 0

Item effects


Black

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  30
  • Reputation:   1
  • Joined:  01/15/12
  • Last Seen:  

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.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

Me too lol, I can do 1 Effect but when I do 2-3 effects, nothing happens, how can I do that?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   152
  • Joined:  02/21/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

Use this program; It has ALOT of scripts and tells you how to use them; its a very easy program to use and I've used it for years

http://www.mediafire.com/?3t5jdmmddno

Credits go to the correct creator of the program

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

@Skyrim

Okay thanks ! I'll try this program /ok

Link to comment
Share on other sites

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.

×
×
  • Create New...