You Get Pwned
New User
- Joined
- Mar 31, 2010
- Messages
- 9
- Reaction score
- 2
Witam mam problem, poniewa? nie dziala mi skrypt na vip acces/door pod tibie 8.54.
skrypt kt?ry uzywam:
data/actions/scripts/vipdoor.lua
data/actions/scripts/vip.lua
data/actions/actions.xml
chce ?eby vip access byl na 30 dni i gdy sie 2 raz uzyje to dodaje nastepne 30dni.
Porsze o pomoc z edytowaniem skryptu.
Link do oficjalnego tematu z skryptem: http://tibia.net.pl/propozycje-skryptow/291667-vip-system.html
skrypt kt?ry uzywam:
data/actions/scripts/vipdoor.lua
Code:
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
Code:
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
Code:
<!-- VIP -->
<action actionid="5786" script="vipdoor.lua"/>
<action itemid="5785" script="vip.lua"/>
Porsze o pomoc z edytowaniem skryptu.
Link do oficjalnego tematu z skryptem: http://tibia.net.pl/propozycje-skryptow/291667-vip-system.html