Overwrite item price in ragnarok

mrlongshen

Noobies
Messages
1,126
Points
0
Age
36
Location
localhost 127.0.0.1
Emulator
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

 
*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

 
*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?

 
*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
 
*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?

 
Last edited by a moderator:
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.

 
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!

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


 
Back
Top