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

Action Vip Feuture's For 0.2.5

Erikas Kontenis

Board Moderator
Staff member
Board Moderator
Joined
Jul 3, 2009
Messages
1,859
Reaction score
556
Location
Lithuania
Ok i will gift us everything what i created for gesior shop

I wont explain all the shit... its very easy to see by script...


So Here it is xml:

Lua:
<action actionid="5788" script="vipsystem/vipdoor.lua" />
	<action itemid="5785" script="vipsystem/vip.lua"/>
	<action itemid="6530" script="vipsystem/soft.lua"/>
        <action itemid="5952" script="vipsystem/levelcoin.lua"/>
	<action itemid="6527" script="vipsystem/addoncoin.lua"/>


addoncoin.lua

Lua:
function onUse(cid, item, fromPosition, itemEx, item2, toPosition)

if item.itemid == 6527 then
getPlayerStorageValue(cid,1800)
doCreatureSay(cid, "You received the first addon and the second addon, Thanks for buying.", TALKTYPE_ORANGE_1)
doPlayerAddAddons(cid, 3)
doSendMagicEffect(fromPosition, 37)
doRemoveItem(item.uid, 1)
setPlayerStorageValue(cid,1800,20)
end
return 1
end

levelcoin.lua

Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
		
if getPlayerStorageValue(cid,1800) == 2 then
			doCreatureSay(cid, "You have already recieved this power!", TALKTYPE_ORANGE_1)

	else if getPlayerLevel(cid) >= 8 then
		doCreatureSay(cid, "You Gained 18 000 000 Experience Points!", TALKTYPE_ORANGE_1)
			doPlayerAddExp(cid, 18000000)
			doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
			doRemoveItem(item.uid)
			setPlayerStorageValue(cid,1800,2)
			return TRUE
		else
					doCreatureSay(cid, "You must be over level 8 to use this scroll", TALKTYPE_ORANGE_1)
		end
end
end

Soft.lua

Lua:
function onUse(cid, item, fromPosition, itemEx, item2, toPosition)

if item.itemid == 6530 then
if(isInArray({getPlayerStorageValue(cid, 11551), getPlayerStorageValue(cid, 11551), getPlayerStorageValue(cid, 11551), getPlayerStorageValue(cid, 11551), getPlayerStorageValue(cid, 11551), getPlayerStorageValue(cid, 11551)}, -1) == 1) then
doPlayerSendTextMessage(cid, 22, "You are not vip! Only V.I.P. can refil soft boots by clicking")
else
doPlayerAddItem(cid,6132,1)
doRemoveItem(item.uid, 1)
end
return 1
end
return 0
end

Vip.lua

Lua:
function onUse(cid, item, frompos, item2, topos)

if item.itemid == 5785 then
if getPlayerLevel(cid) > 1 then
getPlayerStorageValue(cid, 11551)
doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED) 
doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 11551, (getPlayerStorageValue(cid,11551) + 15))
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,'You are not a donator.')
doRemoveItem(item.uid, 1)
end
else
end
return 1
end

vipdoor.lua

Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local cidPosition = getCreaturePosition(cid)
		if (item.actionid == 5788 and getPlayerStorageValue(cid,11551) >= 1) then
			if cidPosition.x < toPosition.x then
				doTeleportThing(cid, {x=toPosition.x,y=toPosition.y+1,z=toPosition.z}, TRUE)
								doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1)
			else
				doTeleportThing(cid, {x=toPosition.x,y=toPosition.y+1,z=toPosition.z}, TRUE)
								doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1)
			end
			return TRUE
		else
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, but only VIP Players can pass here! Buy VIP on the WEB.")
			return TRUE
	end
	return FALSE
end

What i self very like is the soft boots idea ;) only vip players can refil our softies by clicking ;) Realy nice idea isint it? :D then it get on mine head i start writing :D

I Hope Somebody Will rep me :D



/Apsivaflines
 
Dude, are you Beon?
You keep releasing basic knowledge scripts, most of which have already been released.

*Just stop spamming the hell out of the section, make one thread with ALL of them on it.
 
Dude, are you Beon?
You keep releasing basic knowledge scripts, most of which have already been released.

*Just stop spamming the hell out of the section, make one thread with ALL of them on it.


it was released i know but not on 0.2.5 what i gift here was released only vip doors and vip amulet... if dont like what i doing dont post. after saying i spamming better say how to do thoose scripts more effective or something... i saying im learning :D and i pure dont care if you dont like what i doing. mayby somebody need this? o_O


If 0.2.~ Is old that not means it should by forgotten... becouse its pretty good !
 
Cheers! People need to start releasing 0.2+ compatible scripts for us people ;D
 
Hello :)
Why Soft Script doesn't work on tfs 0.3.6 ?
i can repair soft boots when i don't have a vip.
Please help me this is very important.
Sorry for my Bad English
Greetings
Nyga
 
Lua Script Error: [Action Interface]
data/actions/scripts/vip.lua:eek:nUse

data/actions/scripts/vip.lua:7: attempt to call global 'doCreatureSay' (a nil value)

what is the problem here ????
 
Back
Top