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

The best vip system functions [ vip for account! ]

and how the server remove the vip time automatically?? awser my question pleaaaseeeeeee
 
#up
yes, if time has out - player don't have vip (not must relog) : ))
#master-m
it's my script because i post only my scripts and you dont know my skills?

what skill you train?? axe or dist?

anyway good i was looking for vip account system not only players like all those Ty :D
 
can anyone make a script that you can change your days into premium_points tu use gacior shop?? and to maky it to show days in web.... then it will be perfect :D
 
Last edited:
and how the server remove the vip time automatically?? awser my question pleaaaseeeeeee

PHP:
local days = (params["days"]*3600*24)

It all should work correctly.
 
PHP:
[26/08/2009 19:30:31] data/talkactions/scripts/vip.lua:17: attempt to call global 'list' (a nil value)
[26/08/2009 19:30:31] stack traceback:
[26/08/2009 19:30:31] 	data/talkactions/scripts/vip.lua:17: in function <data/talkactions/scripts/vip.lua:1>

I have problems in tfs 0.3.5 crying damson :S
 
Last edited:
I think it's a nice base script, but would be useful for noobs to do a VIP tile and door.

I used your script and edited the funcs so they work with parameter "cid", so you dont need to get account name all time.

Also you should add:
Code:
  function doRemoveVip(cid)
    db.executeQuery("UPDATE `accounts` SET `viptime` = " .. 0 .. " WHERE `id`='" .. getPlayerAccountId(cid) .. "' LIMIT 1;")
   return TRUE
 end
So everyone can remove a players Vip account.
 
mmm all have problems with a vip tile or vip door if you know post it but i think its ifgetplayervipaccount or something plx post a vip door
 
First of all, I DONT KNOW ABOUT THIS
second, im just trying to help,
and third, i just picked a vip door and tried to modify it.
fourth, im not a native english speaker (=P)

this is a vip door

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local cidPosition = getCreaturePosition(cid)
		if (item.actionid == 5788 and 

	#####this is where what I did starts####	
		if(isVip(accountName))then 
            time = getAccountVipTime(accountName) 
            if(time > 0)then 

	####this is where what i did finishes####
		
			) then
			if cidPosition.x < toPosition.x then
				doTeleportThing(cid, {x=toPosition.x+1,y=toPosition.y,z=toPosition.z}, TRUE)
								doCreatureSay(cid, "BIENVENIDO VIP!", TALKTYPE_ORANGE_1)
			else
				doTeleportThing(cid, {x=toPosition.x-1,y=toPosition.y,z=toPosition.z}, TRUE)
								doCreatureSay(cid, "BIENVENIDO VIP!", TALKTYPE_ORANGE_1)
			end
			return TRUE
		else
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "sOLO LOS VIP SON PERMITIDOS AQUI! SI QUIERES VIP, TENDRAS QUE COMPRARLO EN LA PAGINA WEB.")
			return TRUE
	end
	return FALSE
end

please tell me if it works :peace:
 
And MAYBE, this vip item add vip to your accounts:

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)

			doSendAnimatedText(getPlayerPosition(cid), "CONGRATulations!", TEXTCOLOR_RED) 
			doCreatureSay(cid, "Now you are vip blahblahblah!!", TALKTYPE_ORANGE_1)
			doAccountAddVipTime(getPlayerAccount(player), days) + 7
			doRemoveItem(item.uid, 1)

	end	
return TRUE
end

I repeat, I know nothing about this.

please test it =D
 
Last edited:
Back
Top