• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

addStorage

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
I need a talkaction that add storage value to player, exemple:
/addstorage "PLAYER_NAME, STORAGE_VALUE, DURATION_IN_DAYS

Ex:
/addstorage "BomBa, donation, 7

BomBa = Player
Donation = Storage(1000)
7 = 7days of duration
 
Bomba, I have an other vip system, do you like to buy that? :P
this have a table+vip days in hours, exemples:
!addvip BOMBA, 12,
this say mensage to player: you receyved 12 days vip.
before 12 days {288hours} auto send player to free temple position.

With this system you can use value to NPC talk only with vip {can use in boat npc's} and can use this for doors~portal {doors only vip can pass, portal only vip can enter, of portal vip enter go X position, free enter go Y position} I think its really nice, and show in site how many dais vip left with PLAYER ACCOUNT ;p and I can configure it to use VIP for acc {if him buy it from one char, auto go to all characters from the account} or for each char one vip!!!
if you like that so pm me again, have a nice day,
yours Black xS
 
Code:
function onSay(cid, words, param)
	if(param == "") then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
		return TRUE
	end

	local t = string.explode(param, ",")

	if(not isPlayer(t[1])) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with that name is not online.")
		return TRUE
	end
	
	local storage = tonumber(t[2])
	local days = tonumber(t[3])
	if(not storage or days) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Wrong input.")
		return TRUE
	end
	
	setAccountStorageValue(getAccountIdByName(t[1]), t[2], os.time() + (t[3] * 24 * 3600))
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Storage Value #"..t[2].." of player "..t[1].." has been set to "..t[3]..".")
	return TRUE
end

??

/setstorage playerName, storage, value
> /setstorage bomba, 1000, 7
 
Back
Top