Jump to content
  • 0

Adding additional script on item through import file not working


Question

Posted

Hi There again! i am trying to add some bonus script on an item eg. cyclops eye 

db/pre-re/item_db.yml -< i am using this directory i am assuming that this is an import file am i correct?t

this is inside of my item_db.yml

Header:
  Type: ITEM_DB
  Version: 1 
  
 Body: 
   - Id: 5135
    Script: |
      bonus bMaxSP,50; bonus bFlee,50;

then i @reloaditemdb  tons of error pops up on my mapserver.bat

and also this is a newly fresh clone atm

 

Capture.PNG

5 answers to this question

Recommended Posts

  • 0
Posted
2 hours ago, kalabasa said:

db/pre-re/item_db.yml -< i am using this directory i am assuming that this is an import file am i correct?

Not quite..

Use db/import/item_db.yml instead.

  • 0
Posted

okay this time i put the whole this time have a look this is the last two entry on my item_db.yml import 

# Non-kRO Eden Group Mark effect
#=============================================================
#  - Id: 22508
#    AegisName: Para_Team_Mark_
#    Name: Eden Group Mark
#    Type: Delayconsume
#    Script: |
#      unitskilluseid getcharid(3),"AL_TELEPORT",3;

#  - Id: 5135
#    AegisName: Cyclops_Visor
#    Name: Cyclop's Eye
#    Type: Armor
#    Weight: 200
#    Jobs:
#      All: true
#      Novice: false
#      SuperNovice: false
#    Locations:
#      Head_Mid: true
#    EquipLevelMin: 75
#    View: 207
#    Script: |
#     bonus bMaxSP,50; bonus bFlee,50;

Capture.PNG

  • 0
Posted

Anything with a hash (#) infront of it is a comment and won't be read by the server. The error is suggesting you've got something wrong on line 493, second character from the left.

  • 0
Posted (edited)
On 11/22/2020 at 3:58 PM, Akkarin said:

Anything with a hash (#) infront of it is a comment and won't be read by the server. The error is suggesting you've got something wrong on line 493, second character from the left.

my line 493 is total empty o.o 

got it working already. some of the text are needed to be align

 

Edited by kalabasa

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