• 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!

Lua Change item for donation points possible?

TKO

Syphero Owner!
Joined
Mar 10, 2008
Messages
2,252
Reaction score
27
Location
Sweden
Hey Can you make a script that if you change a surtent item you get X points To buy on the website?
 
Do you mean that you should be able to sell in-game items for a various amount of donation points? Like an NPC, but you'll receive donation points on the webpage, instead of ingame cash?
 
Code:
if(msgcontains(msg, "donation sword")) then
	if(doPlayerRemoveItem(cid, donor sword id, 1)) then
		db.executeQuery("UPDATE `accounts` SET `premium_points` + 15 WHERE `id` = ".. getPlayerAccountId(cid) ..";")
	end
end
 
This is for NPC.

Code:
if msgcontains(msg,'donor sword') then
	if(msgcontains(msg, "donation sword")) then
	if(doPlayerRemoveItem(cid, donor sword id, 1)) then
		db.executeQuery("UPDATE `accounts` SET `premium_points` + 15 WHERE `id` = ".. getPlayerAccountId(cid) ..";")
	end
end

give NPC script for me to add it.
 
Back
Top