wlj
retierd
- Joined
- Jan 7, 2009
- Messages
- 1,201
- Reaction score
- 1
Hiho first i wanna say i rly need reps
Localconfig
Lets goto actions.xml and add...
Now we go scripts/tools and we add ... 2 .lua files 1 VIP Item.lua and 1 VIP Door.lua
~~~~~~~~~~~~~~~~~~~
the Item script...
Vip Door
Rep++:wub::wub:
smaller oncs
Localconfig
Lets goto actions.xml and add...
PHP:
<action uniqueid="1337" script="tools/VIP Door.lua"/>
<action itemid="5785" script="tools/VIP Item.lua"/>
~~~~~~~~~~~~~~~~~~~
the Item script...
PHP:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 5785 then
if getPlayerLevel(cid) > 1 then
getPlayerStorageValue(cid, 1337)
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, 1337, 1)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,'You are not a donator.')
doRemoveItem(item.uid, 1)
end
else
end
return 1
end
Vip Door
PHP:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 1337 then -- This number you will imput into map editor for the door you wish
queststatus = getPlayerStorageValue(cid,1337) -- Quest number that needs to be COMPLETE.
area = {x=1000, y=1000, z=7} -- If that above quest is complete, It will teleport you here.
if queststatus == -1 then
doCreatureSay(cid, "Sorry, but only VIP Players can pass here! Buy VIP on the WEB!. [homepage of server also the shop page!] ", TALKTYPE_ORANGE_1)
else
doTeleportThing(cid, area,0)
doSendMagicEffect(topos, 12)
doCreatureSay(cid, "Hiho VIP Player,On server!", TALKTYPE_ORANGE_1)
end
end
return 1
end
Rep++:wub::wub:
smaller oncs
PHP:
local storage = 1337
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid, sotrage) == -1 then
doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, storage, 1)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,'You are already a donator.')
end
return TRUE
end
PHP:
local storage = 1234
function onUse(cid, item, frompos, item2, topos)
if item.uid == 1337 and getPlayerStorageValue(cid, storage) == -1 then
doCreatureSay(cid, "Sorry, but only VIP Players can pass here! Buy VIP on the WEB!. [homepage of server also the shop page!]", TALKTYPE_ORANGE_1)
else
doSendMagicEffect(topos, 12)
doCreatureSay(cid, "Hiho VIP Player, On server!", TALKTYPE_ORANGE_1)
end
return TRUE
end
Last edited: