Jump to content
  • 0

helpMalangdo Cat Paw Merchants - A Comerce System


sipemula

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   0
  • Joined:  07/13/15
  • Last Seen:  

i have question about this script

Quote

You can install the npc normally like any other npc, just pay attention that in the end of the script, have some codes you must place at db/yourrenewal/item_db.txt and db/yourrenewal/item_avail.txt files, so the npc works correctly and your players doesn't get unknown apples in their inventory.

im paste code at rathena/db/item_db.txt then rathena/db/item_avail.txt now item skill Unknow how fix that ?

Note :

rathena = my ragnarok server file

Link to comment
Share on other sites

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

what the line you add in item db and item avail ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   0
  • Joined:  07/13/15
  • Last Seen:  

this at item avail

Quote

//Item_avail.txt
//25000,512 //Product Apple
//25001,1101 //Product Sword
//25002,740 //Product Puppet
//25003,2101 //Product Guard
//25004,513 //Product Banana
//25005,501 //Product Red Potion
25000,10589
25001,10589
25002,10589
25003,10589
25004,10589
25005,10589
25006,10589
25007,10589
25008,10589
25009,10589
25010,10589
25011,10589
25012,10589
25013,10589
25014,10589
25015,10589
25016,10589
25017,10589
25018,10589
25019,10589
25020,10589
25021,10589
25022,10589
25023,10589
25024,10589
25025,10589
25026,10589
25027,10589
25028,10589
25029,10589
25030,10589
25031,10589
25032,10589
25033,10589
25034,10589
25035,10589
25036,10589
25037,10589
25038,10589
25039,10589
25040,10589
25041,10589

Then this for item db

Quote

25000,Mer_Apples,Product: Apples,3,5,,4,,,,,,,,,,,,,{},{},{}
25001,Mer_Sword,Product: Swords,3,200,,50,,,,,,,,,,,,,{},{},{}
25002,Mer_Puppet,Product: Dolls,3,33,,25,,,,,,,,,,,,,{},{},{}
25003,Mer_Guard,Product: Shields,3,35,,35,,,,,,,,,,,,,{},{},{}
25004,Mer_Banana,Product: Bananas,3,7,,4,,,,,,,,,,,,,{},{},{}
25005,Mer_RPotion,Product: Red Potion,3,12,,7,,,,,,,,,,,,,{},{},{}
25006,Mer_OPotion,Product: Orange Potion,3,50,,12,,,,,,,,,,,,,{},{},{}
25007,Mer_YPotion,Product: Yellow Potion,3,137,,18,,,,,,,,,,,,,{},{},{}
25008,Mer_WPotion,Product: White Potion,3,300,,25,,,,,,,,,,,,,{},{},{}
25009,Mer_BPotion,Product: Blue Potion,3,1250,,32,,,,,,,,,,,,,{},{},{}
25010,Mer_GPotion,Product: Green Potion,3,10,,7,,,,,,,,,,,,,{},{},{}
25011,Mer_Grape,Product: Grape,3,40,,5,,,,,,,,,,,,,{},{},{}
25012,Mer_Carrot,Product: Carrot,3,3,,4,,,,,,,,,,,,,{},{},{}
25013,Mer_Sweet_Potato,Product: Potato,3,3,,4,,,,,,,,,,,,,{},{},{}
25014,Mer_Meat,Product: Meat,3,12,,12,,,,,,,,,,,,,{},{},{}
25015,Mer_Honey,Product: Honey,3,125,,25,,,,,,,,,,,,,{},{},{}
25016,Mer_Milk,Product: Milk,3,6,,5,,,,,,,,,,,,,{},{},{}
25017,Mer_Pumpkin,Product: Pumpkin,3,200,,20,,,,,,,,,,,,,{},{},{}
25018,Mer_Ice_Cream,Product: Ice Cream,3,37,,6,,,,,,,,,,,,,{},{},{}
25019,Mer_Pet_Food,Product: Pet Food,3,250,,10,,,,,,,,,,,,,{},{},{}
25020,Mer_Well_Baked_Cookie,Product: Well-baked Cookie,3,250,,10,,,,,,,,,,,,,{},{},{}
25021,Mer_Piece_Of_Cake,Product: Piece of Cake,3,750,,20,,,,,,,,,,,,,{},{},{}
25022,Mer_Falcon's_Feed,Product: Falcon Food,3,500,,22,,,,,,,,,,,,,{},{},{}
25023,Mer_Pecopeco's_Feed,Product: PecoPeco Food,3,750,,22,,,,,,,,,,,,,{},{},{}
25024,Mer_Fish_Slice,Product: Raw Fish,3,20,,6,,,,,,,,,,,,,{},{},{}
25025,Mer_Four_Leaf_Clover,Product: Four Leaf Clover,3,20000,,40,,,,,,,,,,,,,{},{},{}
25026,Mer_Ring,Product: Ring,3,7500,,40,,,,,,,,,,,,,{},{},{}
25027,Mer_Earring,Product: Earring,3,7500,,40,,,,,,,,,,,,,{},{},{}
25028,Mer_Necklace,Product: Necklace,3,7500,,40,,,,,,,,,,,,,{},{},{}
25029,Mer_Glove,Product: Glove,3,7500,,40,,,,,,,,,,,,,{},{},{}
25030,Mer_Brooch,Product: Brooch,3,7500,,40,,,,,,,,,,,,,{},{},{}
25031,Mer_Clip,Product: Clip,3,7500,,40,,,,,,,,,,,,,{},{},{}
25032,Mer_Rosary,Product: Rosary,3,3750,,40,,,,,,,,,,,,,{},{},{}
25033,Mer_Gold_Ring,Product: Gold Ring,3,7500,,40,,,,,,,,,,,,,{},{},{}
25034,Mer_Silver_Ring,Product: Silver Ring,3,5000,,20,,,,,,,,,,,,,{},{},{}
25035,Mer_Headset,Product: Headset,0,300,,50,,,,,,,,,,,,,{},{},{}
25036,Mer_Dagger,Product: Dagger,0,50,,15,,,,,,,,,,,,,{},{},{}
25037,Mer_Rod,Product: Rod,0,50,,12,,,,,,,,,,,,,{},{},{}
25038,Mer_Wand,Product: Wand,0,65,,16,,,,,,,,,,,,,{},{},{}
25039,Mer_Staff,Product: Staff,0,85,,20,,,,,,,,,,,,,{},{},{}
25040,Mer_Bow,Product: Bow,0,60,,8,,,,,,,,,,,,,{},{},{}
25041,Mer_Axe,Product: Axe,0,80,,22,,,,,,,,,,,,,{},{},{}

 

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

what your goal >.> ?

and where the error ?

item skill Unknow << where you get that ? can we have screenshot for the terminal or the client wherever the error is ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   0
  • Joined:  07/13/15
  • Last Seen:  

screenHorizon005.thumb.jpg.f282a5c1c158e690590ae59f5546f6e5.jpgitem buy from merchan cat paw Unknow

 

Edited by sipemula
Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

this cuz you need to add your items in the client side

go to your game folder

system folder

file called iteminfo.lua

open it and add your items down

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   0
  • Joined:  07/13/15
  • Last Seen:  

ok i will try ^^

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

[myitemID] = {
		unidentifiedDisplayName = "My item name before been identified",
		unidentifiedResourceName = "my_item_file_name_or_photo_before_been_identified_no_spaces",
		unidentifiedDescriptionName = { "Description" },
		identifiedDisplayName = "My item name identified",
		identifiedResourceName = "my_item_file_name_or_photo_identified_no_spaces",
		identifiedDescriptionName = {
			"Description",
			"Description",
			"Description",
			"Description",
			"Weight:^006600 10^000000 -this also Description"
		},
		slotCount = 0,
		ClassNum = 0
	},

 

and save

restart the game after edit

Edited by sader1992
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   0
  • Joined:  07/13/15
  • Last Seen:  

Quote

    [25000] = {
        unidentifiedDisplayName = "Apple",
        unidentifiedResourceName = "사과",
        unidentifiedDescriptionName = { "Description" },
        identifiedDisplayName = "Apple",
        identifiedResourceName = "사과",
        identifiedDescriptionName = {
            "Weight:^006600 2^000000"
        },
        slotCount = 0,
        ClassNum = 0
    },

Like that ?

then i have error

ice_screenshot_20170807-065807.png.47a9036c71c79e05a1f1dcae7ba5e6bd.png

 

Edited by sipemula
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   0
  • Joined:  07/13/15
  • Last Seen:  

ice_screenshot_20170807-065947.jpeg.b26133c6d58b26bfed8bbf89c7e91854.jpeg

Edited by sipemula
Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

screenshot where the line of the error before&after 10 lines

PS: the error tell you the line not the item id

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   0
  • Joined:  07/13/15
  • Last Seen:  

ok im undertand :D

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   0
  • Joined:  07/13/15
  • Last Seen:  

mean is line 131981 ?

ice_screenshot_20170807-071236.jpeg.ec533f0abe539e3c2084afa8dad7a7c6.jpeg

i dont know why this .lua like that

ice_screenshot_20170807-071520.thumb.jpeg.54a2688de22e09d6333666298cf5eae0.jpeg

Edited by sipemula
Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

yes screenshot it in the notepad++ with before&after 10 lines

 

and click above on Encoding and tell me if there is something selected(must be no select on any option

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

yes as i see in the photo the iteminfo wont work i would remove it and add another one from the files that (i think you already have the files from the english files) and re add my items and take care that i don't edit the Encoding

 

cuz as you see the end disply line must be " and it's ? so the client see error there

Edited by sader1992
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   0
  • Joined:  07/13/15
  • Last Seen:  

before&after 10 lines ice_screenshot_20170807-072112.thumb.jpeg.08bcded92f1493afccc57ec3470582b3.jpeg

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   0
  • Joined:  07/13/15
  • Last Seen:  

so what im must do ing now ?

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

you have ROenglishRE when you downloaded the english files right ?

remove the iteminfo.lua and re add it from the one in the ROenglishRE files and readd your items 

after you add your item and everything work always backup your edited iteminfo to not readd your items every time it get like that

(i think you alrady have the english files but this the url to make sure

https://github.com/zackdreaver/ROenglishRE

copy the item info from those files in the system folder

to your client system folder

and re add your files in the new item info inside your system client folder

Edited by sader1992
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   0
  • Joined:  07/13/15
  • Last Seen:  

still same error >.<

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

try to use another editor like Visual Code

 

use new iteminfo the one that don't work delete it and copy a new one

Edited by sader1992
Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

you can use any editor you want

but

if you want to use Visual Code

open it then select above

File >> Preferences >> Settings

then on the right side must be like this

// Place your settings in this file to overwrite the default settings
{
    "files.encoding": "utf8",
    "files.autoGuessEncoding": true
}

as the photo

 

123456787654321234567876543212345678.thumb.jpg.fa9e5808ec6bc6428a93795838177595.jpg

 

 

then click Ctrl + S

to save the setting

then restart Visual Code

then open your iteminfo in it and edit

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   0
  • Joined:  07/13/15
  • Last Seen:  

Now dont have error, then item still Unknow Item XD

ice_screenshot_20170807-080549.jpeg.c82507293f78385027e7da5c1450a7ae.jpeg

how about at grf like idnum etc..?

Edited by sipemula
Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

as long as you don't see @item failed = the error from the client side

try different id (in the server&client side)

cuz you maybe have this id in the client side for different item

i would try something like 35000 and more

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   0
  • Joined:  07/13/15
  • Last Seen:  

if im change item id at iteminfo.lua at server side for script npc must change too right ?

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

yes they must be the same

and i say +35000 cuz if you see the item info it's already have +32000 item so be save and take from +35000 and more

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   0
  • Joined:  07/13/15
  • Last Seen:  

im change at item_db then item avail

now not Unknow item, then now have problem like this :

ice_screenshot_20170807-082842.jpeg.63e038d4bfc1196676db9b70011fb97c.jpeg

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