Jump to content
  • 0

Item script effect


GoldRoger

Question


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   0
  • Joined:  03/19/18
  • Last Seen:  

How can i put turtle general effect card to my custom item?..also need to put if their class star gladiator and star emperor equip got extra effect

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  210
  • Reputation:   92
  • Joined:  06/02/12
  • Last Seen:  

Hi. You can search in your server files for how a item effect is scripted.

Let's try to find Turtle General Card effect!
There's 3 files for items.

\db\re\item_db_usable.yml
\db\re\item_db_equip.yml
\db\re\item_db_etc.yml

I found Turtle General Card in \db\re\item_db_etc.yml

  - Id: 4305
    AegisName: Turtle_General_Card
    Name: Turtle General Card
    Type: Card
    Buy: 20
    Weight: 10
    Locations:
      Right_Hand: true
    Flags:
      BuyingStore: true
      DropEffect: CLIENT
    Script: |
      bonus2 bAddClass,Class_All,20;
      bonus3 bAutoSpell,"SM_MAGNUM",10,30;

The Script part is what we are looking for. This card has 2 effects. And the Script also has 2 lines.

# This item script is for the effect "ATK +20%":
bonus2 bAddClass,Class_All,20;

# This item script is for the effect "Add the chance of auto casting level 10 Magnum Break on enemy when doing Physical Attack.":
bonus3 bAutoSpell,"SM_MAGNUM",10,30;

After some search we discovered the item script for Turtle General effect card!/no1

 

You can check for the player BaseJob to make a extra effect for specific jobs.

if (BaseJob == Job_Star_Gladiator) {
	# Extra effect for star gladiator and star emperor	
}

 

Example:

  - Id: 2230000
    AegisName: Turtle_General_Custom_Hat
    Name: Turtle General Custom Hat
    Type: Armor
    Locations:
      Head_Top: true
    ArmorLevel: 1
    Refineable: true
    Script: |
      bonus2 bAddClass,Class_All,20;
      if (BaseJob == Job_Star_Gladiator) {
         bonus3 bAutoSpell,"SM_MAGNUM",10,30;	
      }

 

  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   0
  • Joined:  03/19/18
  • Last Seen:  

if (BaseJob == Job_Star_Gladiator) {
    # Extra effect for star gladiator and star emperor    
}

 

About this one sir..no need to put star emperor class on base job?..btw wow with good explanation sir .thank you so much

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  63
  • Topics Per Day:  0.02
  • Content Count:  1016
  • Reputation:   191
  • Joined:  11/27/14
  • Last Seen:  

Please spend time to read rAthena server documents and become more curious 

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...