• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Shop System

Eldora

Banned User
Joined
Oct 19, 2009
Messages
604
Reaction score
26
My Shop System is selling a Sudden Death Rune.

How can i change its charges to 20x instead of 1x?

The ID for SD is: 2263
 
scripts/blah.lua

Taken from runes.lua, from default NPC scripts in TFS 0.3.6

Code:
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addBuyableItem({'sudden death'}, 2268, COST, CHARGES_HERE, 'sudden death rune')
 
scripts/blah.lua

Taken from runes.lua, from default NPC scripts in TFS 0.3.6

Code:
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addBuyableItem({'sudden death'}, 2268, COST, CHARGES_HERE, 'sudden death rune')

I was not asking for a NPC script.
I mean when people buy from my donation shop at the website.
I want them to get 20x runes instead of 1x!
 
Run Mysql query
Code:
INSERT INTO `z_shop_offer` (`SHOP ID`, `HOW MANY POINTS`, `ITEM ID`, `HOW MANY`, `itemid2`, `count2`, `offer_type`, `offer_description`, `offer_name`) VALUES
(1, 5, 2517, 1, 0, 0, 'item', 'DESCRIPTION ABOUT ITEM', 'NAME OF ITEM');
 
Back
Top