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:
addoncoin.lua
levelcoin.lua
Soft.lua
Vip.lua
vipdoor.lua
What i self very like is the soft boots idea only vip players can refil our softies by clicking Realy nice idea isint it? then it get on mine head i start writing
I Hope Somebody Will rep me
/Apsivaflines
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? then it get on mine head i start writing
I Hope Somebody Will rep me
/Apsivaflines