Jump to content
  • 0

Help error.


Michael D.

Question


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  87
  • Reputation:   0
  • Joined:  10/28/12
  • Last Seen:  

hi guys . do you know what to put in OnEuip_Script?? bec i got this error iam making a custom wing .

123-90043.jpg

Link to comment
Share on other sites

19 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  410
  • Reputation:   29
  • Joined:  04/04/12
  • Last Seen:  

Post the item script you have for that item, it looks like you just forgot the } at the end.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  87
  • Reputation:   0
  • Joined:  10/28/12
  • Last Seen:  

21115,New_White_Fairy_Wings,white fairy wings,5,100000,50000,0,100,40,,1,0xFFFFFFFF,1,2,1,,,1,,{ bonus bAllStats,20; }{},{}

here is the script in my item_db2.txt

and in my data folder. after i diff. heres 1 in my acceossryid.lua

ACCESSORY_New_White_Fairy_Wings = 889,

Edited by mykel09
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  410
  • Reputation:   29
  • Joined:  04/04/12
  • Last Seen:  

You forgot a comma, change it to this.

21115,New_White_Fairy_Wings,white fairy wings,5,100000,50000,0,100,40,,1,0xFFFFFFFF,1,2,1,,,1,,{ bonus bAllStats,20; },{},{}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  87
  • Reputation:   0
  • Joined:  10/28/12
  • Last Seen:  

fixed . thanks. but still have problem in my wing. still have errors.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  410
  • Reputation:   29
  • Joined:  04/04/12
  • Last Seen:  

What kind of errors?

Sprite errors?

Did you also change accname.lua?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  390
  • Reputation:   27
  • Joined:  07/12/12
  • Last Seen:  

post your error, so it can be solved ASAP.

just incase (some people forget this)

check your sprites using SPR CONVIEW if a sprite has more than 6 frames, its a equipsprite, if there is only 1, its a drop sprite.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  87
  • Reputation:   0
  • Joined:  10/28/12
  • Last Seen:  

What kind of errors?

Sprite errors?

Did you also change accname.lua?

here's in my accname.lua what's the problem here?

[ACCESSORY_IDs.ACCESSORY_Red_Fairy_Wings] = "Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_Rastafari_Fairy_Wings] = "Rastafari_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Black_Fairy_Wings] = "New_Black_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Blue_Fairy_Wings] = "New_Blue_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Dark_Blue_Fairy_Wings] = "New_Dark_Blue_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Dark_Cyan_Fairy_Wings] = "New_Dark_Cyan_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Dark_Gold_Fairy_Wings] = "New_Dark_Gold_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Dark_Green_Fairy_Wings] = "New_Dark_Green_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_Red_New_Dark_Purple_Fairy_Wings] = "New_Dark_Purple_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Dark_Red_Fairy_Wings] = "New_Dark_Red_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Gold_Fairy_Wing] = "New_Gold_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Green_Fairy_Wings] = "New_Green_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Purple_Fairy_Wings] = "New_Purple_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Red_Fairy_Wings] = "New_Red_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_White_Fairy_Wings] = "New_White_Fairy_Wings"

post your error, so it can be solved ASAP.

just incase (some people forget this)

check your sprites using SPR CONVIEW if a sprite has more than 6 frames, its a equipsprite, if there is only 1, its a drop sprite.

downloading SPR CONVIEW.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  390
  • Reputation:   27
  • Joined:  07/12/12
  • Last Seen:  

What kind of errors?

Sprite errors?

Did you also change accname.lua?

here's in my accname.lua what's the problem here?

[ACCESSORY_IDs.ACCESSORY_Red_Fairy_Wings] = "Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_Rastafari_Fairy_Wings] = "Rastafari_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Black_Fairy_Wings] = "New_Black_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Blue_Fairy_Wings] = "New_Blue_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Dark_Blue_Fairy_Wings] = "New_Dark_Blue_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Dark_Cyan_Fairy_Wings] = "New_Dark_Cyan_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Dark_Gold_Fairy_Wings] = "New_Dark_Gold_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Dark_Green_Fairy_Wings] = "New_Dark_Green_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_Red_New_Dark_Purple_Fairy_Wings] = "New_Dark_Purple_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Dark_Red_Fairy_Wings] = "New_Dark_Red_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Gold_Fairy_Wing] = "New_Gold_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Green_Fairy_Wings] = "New_Green_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Purple_Fairy_Wings] = "New_Purple_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_Red_Fairy_Wings] = "New_Red_Fairy_Wings"
[ACCESSORY_IDs.ACCESSORY_New_White_Fairy_Wings] = "New_White_Fairy_Wings"

post your error, so it can be solved ASAP.

just incase (some people forget this)

check your sprites using SPR CONVIEW if a sprite has more than 6 frames, its a equipsprite, if there is only 1, its a drop sprite.

downloading SPR CONVIEW.

there's your problem.. you forgot to place coma's...

here you go, copy this and replace what you have, then tell me if its still not working..

[ACCESSORY_IDs.ACCESSORY_Red_Fairy_Wings] = "Fairy_Wings",

[ACCESSORY_IDs.ACCESSORY_Rastafari_Fairy_Wings] = "Rastafari_Fairy_Wings",

[ACCESSORY_IDs.ACCESSORY_New_Black_Fairy_Wings] = "New_Black_Fairy_Wings",

[ACCESSORY_IDs.ACCESSORY_New_Blue_Fairy_Wings] = "New_Blue_Fairy_Wings",

[ACCESSORY_IDs.ACCESSORY_New_Dark_Blue_Fairy_Wings] = "New_Dark_Blue_Fairy_Wings",

[ACCESSORY_IDs.ACCESSORY_New_Dark_Cyan_Fairy_Wings] = "New_Dark_Cyan_Fairy_Wings",

[ACCESSORY_IDs.ACCESSORY_New_Dark_Gold_Fairy_Wings] = "New_Dark_Gold_Fairy_Wings",

[ACCESSORY_IDs.ACCESSORY_New_Dark_Green_Fairy_Wings] = "New_Dark_Green_Fairy_Wings",

[ACCESSORY_IDs.ACCESSORY_Red_New_Dark_Purple_Fairy_Wings] = "New_Dark_Purple_Fairy_Wings",

[ACCESSORY_IDs.ACCESSORY_New_Dark_Red_Fairy_Wings] = "New_Dark_Red_Fairy_Wings",

[ACCESSORY_IDs.ACCESSORY_New_Gold_Fairy_Wing] = "New_Gold_Fairy_Wings",

[ACCESSORY_IDs.ACCESSORY_New_Green_Fairy_Wings] = "New_Green_Fairy_Wings",

[ACCESSORY_IDs.ACCESSORY_New_Purple_Fairy_Wings] = "New_Purple_Fairy_Wings",

[ACCESSORY_IDs.ACCESSORY_New_Red_Fairy_Wings] = "New_Red_Fairy_Wings",

[ACCESSORY_IDs.ACCESSORY_New_White_Fairy_Wings] = "New_White_Fairy_Wings",

Also check your item_db2.. your server monitor shows it..

you have wrong format for OnEquip column.. its usually left blank..

here is the format, count the columns then edit.

ID,Name,Name,Type,Price,Sell,Weight,ATK,DEF,Range,Slot,Job,Upper,Gender,Loc,wLV,eLV,Refineable,View,{ Script },{ OnEquip_Script },{ OnUnequip_Script }

this is the part where you put your scriipts (i.e. bonus atkRate,10)

{ Script }

Edited by stydianx
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  87
  • Reputation:   0
  • Joined:  10/28/12
  • Last Seen:  

Thanks. ok i will tell you if there's a prob again . have to build again.

@stydianx

Heres another error. i can use it but when im novice it cannot be equipped by all. and no pic when equipped.

123-90048.jpg

Edited by mykel09
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  12/20/11
  • Last Seen:  

Has your client been diffed up to 2000 max headgear view ID's?

Also, make sure you have the correct view ID on the item.

Example using from above:

21115,New_White_Fairy_Wings,white fairy wings,5,100000,50000,0,100,40,,1,0xFFFFFFFF,1,2,1,,,1,889,{ bonus bAllStats,20; },{},{}

Where "889" is the ID associated to it from your accessoryid lua.

Edited by UltraSlayer
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  87
  • Reputation:   0
  • Joined:  10/28/12
  • Last Seen:  

i diff it up to 4000 is that ok ??

and i change my view i.d but still i got this my wings goes to etc not in equip.

here is an example.

21115,New_White_Fairy_Wings,white fairy wings,10,100000,50000,0,100,40,,1,0xFFFFFFFF,1,2,1,,,1,888,{ bonus bAllStats,100; },{},{}

mu view i.d in accessoryid lua its id is 888 like youve said change it according to my accessory.lua

BUMP!. help my custom wing goes to etc. in my inventory how to fix it?? need it badly

Edited by mykel09
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  390
  • Reputation:   27
  • Joined:  07/12/12
  • Last Seen:  

go to this link: http://rathena.org/wiki/Custom_Items

then look for these lines:

Type: Purpose of the item.

- iin this case, use 5

Job: Which jobs this item is available for. Values below can be combined to achieve availability for multiple job classes, i. e. 0x2|0x4 -> 0x6 (Swordman+Mage)

- use this: 0xFFFFFFFE

Upper: Specifies whether the item can be used by normal, baby or reborn classes. Values below can be combined, i. e. 1|4 -> 5 (Normal+Baby Classes)

- use 2

Loc: Equipment location of armor and arrow-type items. Values below can be combined, i. e. 136 would indicate both accessory slots (typical value for accessories).

- for wings, its usually used as a mantle, so use 4.. if you want it as a head gear, use 256..

you can also add numbers:

i.e lower headgear(1) + upper headgear(256) + mid headgear(512) = 769, this will use all equip sockets in equip menu.

View IDs, Having A Custom Item Without Xray

this part is up to you. read carefully and double check..follow the tutorial..

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  87
  • Reputation:   0
  • Joined:  10/28/12
  • Last Seen:  

why is it that my data folder doesnt have.lub files like accessoryid.lub and accname.lub ???

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  12/20/11
  • Last Seen:  

If you know your client version, then you can match it to the lubs found here:

https://www.assembla.com/code/ClientSide/subversion/nodes/Lua_Project/lubs?rev=228

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  390
  • Reputation:   27
  • Joined:  07/12/12
  • Last Seen:  

try looking again, but this time, follow this:

go to

Data

then

lua files

then

data info

there you will see what you are looking for /ok

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  87
  • Reputation:   0
  • Joined:  10/28/12
  • Last Seen:  

If you know your client version, then you can match it to the lubs found here:

https://www.assembla...ct/lubs?rev=228

my client version is 2011-03-15 . is it ok with

2011-03-16 Lub Files [Translated].rar ?

try looking again, but this time, follow this:

go to

Data

then

lua files

then

data info

there you will see what you are looking for /ok

I've search it many times but it doesnt have lub files.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  12/20/11
  • Last Seen:  

my client version is 2011-03-15 . is it ok with

2011-03-16 Lub Files [Translated].rar ?

It's only a day ahead, so it should be fine.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  390
  • Reputation:   27
  • Joined:  07/12/12
  • Last Seen:  

i send you a PM.. read it..

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  87
  • Reputation:   0
  • Joined:  10/28/12
  • Last Seen:  

my client version is 2011-03-15 . is it ok with

2011-03-16 Lub Files [Translated].rar ?

It's only a day ahead, so it should be fine.

ok thanks a lot.

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