Jump to content
  • 0

Adding additional script on item through import file not working


kalabasa

Question


  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.05
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

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

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1614
  • Joined:  03/26/12
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.05
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

5 minutes ago, Akkarin said:

Not quite..

Use db/import/item_db.yml instead.

okay let me do a quick test 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.05
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1614
  • Joined:  03/26/12
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.05
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

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