0.3.6//forgotten server//tibia 8.60
Like in topic, I would like to use VIP script on ground yet, so it would be easier to get in VIP area.
For example: http://pl.tinypic.com/view.php?pic=nz4pcp&s=8#.VHZvmckpXcs
I have also problem with VIP doors because it teleports me on 1 sqm next to doors, when it whould tp me behind it.
This is my script:
I've got the third problem yet. When I put doors ID 1300, it will let to pass players with 300+ lvl. But when I make it for 11000, the player must have 11000 lvl to be able to pass... What's the reason?
For example: http://pl.tinypic.com/view.php?pic=24eq9ev&s=8#.VHZw2skpXcs
Left doors works fine, the right one don't :/
When i changed sides the properties of it changed too...
Like in topic, I would like to use VIP script on ground yet, so it would be easier to get in VIP area.
For example: http://pl.tinypic.com/view.php?pic=nz4pcp&s=8#.VHZvmckpXcs
I have also problem with VIP doors because it teleports me on 1 sqm next to doors, when it whould tp me behind it.
This is my script:
Code:
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+1,y=toPosition.y,z=toPosition.z}, TRUE) doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1) else doTeleportThing(cid, {x=toPosition.x-1,y=toPosition.y,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
I've got the third problem yet. When I put doors ID 1300, it will let to pass players with 300+ lvl. But when I make it for 11000, the player must have 11000 lvl to be able to pass... What's the reason?
For example: http://pl.tinypic.com/view.php?pic=24eq9ev&s=8#.VHZw2skpXcs
Left doors works fine, the right one don't :/
When i changed sides the properties of it changed too...