Shawak
Intermediate OT User
First of all, i have to say that you need the http://otland.net/f163/full-working-vip-system-shawak-44840/ to use the scripts ^_^.
Version:
TFS 0.3.5, tested.
Credits:
- Idea:
http://otland.net/f82/vip-system-19426/
http://otland.net/f81/updated-vip-system-44805/
- First scripts:
Empty
- New Version:
By me .
Items:
Here the VIP medal:
And the door:
Script:
-> data/actions/actions.xml
-> data/actions/scripts/vipdoor.lua
-> data/actions/scripts/vip.lua
Instruction:
(give the door the actionid 5786)
If you find any bugs, report them here! ^_^
If you like it, please don't forget to rep++.
@Good Scritpers: Stop rewriting my scripts!
Regards,
Shawak
Version:
TFS 0.3.5, tested.
Credits:
- Idea:
http://otland.net/f82/vip-system-19426/
http://otland.net/f81/updated-vip-system-44805/
- First scripts:
Empty
- New Version:
By me .
Items:
Here the VIP medal:
And the door:
Script:
-> data/actions/actions.xml
Lua:
<!-- VIP -->
<action actionid="5786" script="vipdoor.lua"/>
<action itemid="5785" script="vip.lua"/>
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayerVip(cid) == TRUE then
if getCreaturePosition(cid).y < toPosition.y then
doTeleportThing(cid, {x=toPosition.x,y=toPosition.y+1,z=toPosition.z}, TRUE)
else
doTeleportThing(cid, {x=toPosition.x,y=toPosition.y-1,z=toPosition.z}, TRUE)
end
doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1)
doSendMagicEffect(getCreaturePosition(cid), 10)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, but only VIP Players can pass here! Buy VIP on the WEB.")
end
return TRUE
end
Lua:
local days = 30
local levelToBeVIP = 1
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) >= levelToBeVIP then
if isPlayerVip(cid) == FALSE then
doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP for "..days.." days! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
end
doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED)
doPlayerAddVipDays(cid, days)
doRemoveItem(item.uid, 1)
doSendAnimatedText(getCreaturePosition(cid), "+"..days.." days", 30)
else
doPlayerSendCancel(cid, "You need level "..levelToBeVIP.." to be a VIP player.")
end
return TRUE
end
Instruction:
(give the door the actionid 5786)
If you find any bugs, report them here! ^_^
If you like it, please don't forget to rep++.
@Good Scritpers: Stop rewriting my scripts!
Regards,
Shawak
Last edited: