introduce premium account system as a real premmium account for donators while regular features like travling and spells are free

This commit is contained in:
ErikasKontenis
2021-04-17 17:33:22 +03:00
parent 37aedf0555
commit 6fda4d4663
15 changed files with 78 additions and 95 deletions

View File

@@ -1,5 +1,5 @@
function onStepIn(creature, item, position, fromPosition)
if creature:isPlayer() and creature:getPlayer():getStorageValue(323) == 1 and creature:getPlayer():isPremium() and creature:getPlayer():getItemCount(5021) >= 1 then
if creature:isPlayer() and creature:getPlayer():getStorageValue(323) == 1 and creature:getPlayer():getItemCount(5021) >= 1 then
doRelocate(item:getPosition(),{x = 32498, y = 31621, z = 06})
item:getPosition():sendMagicEffect(11)
Game.sendMagicEffect({x = 32498, y = 31621, z = 06}, 11)