Jump to content
  • 0
mrlongshen

Overwrite item price in ragnarok

Question

Hello.

I want to request a script that overwrite item price in ragnarok.

For example, with this script, all monster card price range of 10k to 20k zeny.

Also, for weapon, headgear, accessories can be customize price range for 100k to 200k zeny and for etc item, price are default to original price

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0

1) Just open SDE

2) Open item db

3) Use "[type] 6" as filter

4) Select 1 card, then ctrl+A

5) Edit sell & buy price on the right window (it will edit ALL selected items)

6) Save

7) ...

8) Profit!

Share this post


Link to post
Share on other sites
  • 0


*setiteminfo(<item id>,<type>,<value>)

 

This function will set some value of an item.

Returns the new value on success, or -1 on fail (item_id not found or

invalid type).

 

Valid types are:

0 - Buy Price; 1 - Sell Price; 2 - Item Type;

3 - maxchance (Max drop chance of this item e.g. 1 = 0.01% , etc..

if = 0, then monsters don't drop it at all (rare or a quest item)

if = 10000, then this item is sold in NPC shops only

4 - sex; 5 - equip; 6 - weight; 7 - atk; 8 - def; 9 - range;

10 - slot; 11 - look; 12 - elv; 13 - wlv; 14 - view id

 

Example:

 

setiteminfo Stone, 6, 9990; // Stone now weighs 999.0

Share this post


Link to post
Share on other sites
  • 0

 

*setiteminfo(<item id>,<type>,<value>)

This function will set some value of an item.
Returns the new value on success, or -1 on fail (item_id not found or 
invalid type).

Valid types are:
	0 - Buy Price; 1 - Sell Price; 2 - Item Type;
	3 - maxchance (Max drop chance of this item e.g. 1 = 0.01% , etc..
		if = 0, then monsters don't drop it at all (rare or a quest item)
		if = 10000, then this item is sold in NPC shops only
	4 - sex; 5 - equip; 6 - weight; 7 - atk; 8 - def; 9 - range;
	10 - slot; 11 - look; 12 - elv; 13 - wlv; 14 - view id

Example:

setiteminfo Stone, 6, 9990; // Stone now weighs 999.0

Auch. This option need to set manual right. How about a thousand of card?

Share this post


Link to post
Share on other sites
  • 0

 

 

*setiteminfo(<item id>,<type>,<value>)

This function will set some value of an item.
Returns the new value on success, or -1 on fail (item_id not found or 
invalid type).

Valid types are:
	0 - Buy Price; 1 - Sell Price; 2 - Item Type;
	3 - maxchance (Max drop chance of this item e.g. 1 = 0.01% , etc..
		if = 0, then monsters don't drop it at all (rare or a quest item)
		if = 10000, then this item is sold in NPC shops only
	4 - sex; 5 - equip; 6 - weight; 7 - atk; 8 - def; 9 - range;
	10 - slot; 11 - look; 12 - elv; 13 - wlv; 14 - view id

Example:

setiteminfo Stone, 6, 9990; // Stone now weighs 999.0

Auch. This option need to set manual right. How about a thousand of card? So I need to put item id one by one. Any different idea that can be used for detect a card type ?

Just loop from 4001-4999, all cards are in that range

Share this post


Link to post
Share on other sites
  • 0

 

 

 

*setiteminfo(<item id>,<type>,<value>)

This function will set some value of an item.
Returns the new value on success, or -1 on fail (item_id not found or 
invalid type).

Valid types are:
	0 - Buy Price; 1 - Sell Price; 2 - Item Type;
	3 - maxchance (Max drop chance of this item e.g. 1 = 0.01% , etc..
		if = 0, then monsters don't drop it at all (rare or a quest item)
		if = 10000, then this item is sold in NPC shops only
	4 - sex; 5 - equip; 6 - weight; 7 - atk; 8 - def; 9 - range;
	10 - slot; 11 - look; 12 - elv; 13 - wlv; 14 - view id

Example:

setiteminfo Stone, 6, 9990; // Stone now weighs 999.0

Auch. This option need to set manual right. How about a thousand of card? So I need to put item id one by one. Any different idea that can be used for detect a card type ?

Just loop from 4001-4999, all cards are in that range

 

can you give simple script for example?

Edited by mrlongshen

Share this post


Link to post
Share on other sites
  • 0

I'd say it'd be way faster to change it in the db unless you want to randomize the price once in a while. And if you're using SDE, editing all cards in db directly would be pretty simple.

Share this post


Link to post
Share on other sites
  • 0

I'd say it'd be way faster to change it in the db unless you want to randomize the price once in a while. And if you're using SDE, editing all cards in db directly would be pretty simple.

It will take a time to edit using Sde. Any other method sir ?

Share this post


Link to post
Share on other sites
  • 0

1) Just open SDE

2) Open item db

3) Use "[type] 6" as filter

4) Select 1 card, then ctrl+A

5) Edit sell & buy price on the right window (it will edit ALL selected items)

6) Save

7) ...

8) Profit!

 

Wowo! cools! + 1 for you. thanks for the method :D

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.