mocoba
New Member
- Joined
- Aug 23, 2008
- Messages
- 332
- Reaction score
- 0
i have server 8.60
my problem
i have 2 sqm vip and when i load Vip.lua in creaturescripts i cant login and wheni login it give me error
and when i delete it i can login without error but when i enter vip erea i get error and anyone can go in this vip erea
my vip.lua
AND.......................
i have another problem with npc i made new npc and when i load it give me error
how i fix it
and toolss.lua
my problem
i have 2 sqm vip and when i load Vip.lua in creaturescripts i cant login and wheni login it give me error
and when i delete it i can login without error but when i enter vip erea i get error and anyone can go in this vip erea
my vip.lua
PHP:
function onLogin(cid)
local pos = {x=32360, y=31782, z=7}
pos = {x=32360, y=31782, z=7}
if vip.hasVip(cid) == TRUE then
if getPlayerStorageValue(cid,55555) ~= 1 then
setPlayerStorageValue(cid,55555,1)
end
elseif vip.hasVip(cid) ~= TRUE and vip.getVip(cid) ~= 0 then
if getPlayerStorageValue(cid,55555) == 1 then
doTeleportThing(cid, pos, TRUE)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your VIP's over!")
doPlayerSendTextMessage(cid,22,"Your VIP's over!")
setPlayerPromotionLevel(cid, 1)
setPlayerStorageValue(cid,55555,2)
elseif getPlayerStorageValue(cid,55555) == -1 then
setPlayerStorageValue(cid,55555,2)
end
end
return TRUE
end
i have another problem with npc i made new npc and when i load it give me error
how i fix it
PHP:
[03/09/2010 02:37:27] [Error - LuaScriptInterface::loadFile] data/npc/scripts/SELL/toolss.lua:58: '}' expected near 's'
[03/09/2010 02:37:27] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/SELL/toolss.lua
[03/09/2010 02:37:27] data/npc/scripts/SELL/toolss.lua:58: '}' expected near 's'
[03/09/2010 02:37:40] [Error - LuaScriptInterface::loadFile] data/npc/scripts/SELL/toolss.lua:58: '}' expected near 's'
[03/09/2010 02:37:40] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/SELL/toolss.lua
[03/09/2010 02:37:40] data/npc/scripts/SELL/toolss.lua:58: '}' expected near 's'
PHP:
local keywordHandler = KeywordHandler:new()
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
shopModule:addBuyableItem({'Sniper Gloves'}, 5875, 5000, 'Sniper Gloves')
shopModule:addBuyableItem({'Lizard Leather'}, 5876, 2000, 'Lizard Leather')
shopModule:addBuyableItem({'Green Dragon Leather'}, 5877, 2000, 'Green Dragon Leather')
shopModule:addBuyableItem({'Minotaur Leather'}, 5878, 1000, 'Minotaur Leather')
shopModule:addBuyableItem({'spools of yarn'}, 5886, 10000, 'spools of yarn')
shopModule:addBuyableItem({'Iron Ore'}, 5880, 3000, 'Iron Ore')
shopModule:addBuyableItem({'Lizard Scale'}, 5881, 2000, 'Lizard Scale')
shopModule:addBuyableItem({'Red Dragon Scale'}, 5882, 2000, 'Red Dragon Scale')
shopModule:addBuyableItem({'Ape Fur'}, 5883, 1000, 'Ape Fur')
shopModule:addBuyableItem({'Chicken Feather'}, 5890, 1000, 'Chicken Feather')
shopModule:addBuyableItem({'Behemoth Fang'}, 5893, 3000, 'Behemoth Fang')
shopModule:addBuyableItem({'Bat wing'}, 5894, 1000, 'Bat wing')
shopModule:addBuyableItem({'Fish Fin'}, 5895, 3000, 'Fish Fin')
shopModule:addBuyableItem({'Bear Paw'}, 5896, 1000, 'Bear Paw')
shopModule:addBuyableItem({'Wolf Paw'}, 5897, 1000, 'Wolf Paw')
shopModule:addBuyableItem({'Beholder Eye'}, 5898, 3000, 'Beholder Eye')
shopModule:addBuyableItem({'Turtle Shells'}, 5899, 5000, 'Turtle Shells')
shopModule:addBuyableItem({'Honeycomb'}, 5902, 1000, 'Honeycomb')
shopModule:addBuyableItem({'Magic Sulphur'}, 5904, 10000, 'Magic Sulphur')
shopModule:addBuyableItem({'Vampire Dust'}, 5905, 5000, 'Vampire Dust')
shopModule:addBuyableItem({'Demon Dust'}, 5906, 10000, 'Demon Dust')
shopModule:addBuyableItem({'White Piece of Cloth'}, 5909, 5000, 'White Piece of Cloth')
shopModule:addBuyableItem({'Red Piece of Cloth'}, 5911, 5000, 'Red Piece of Cloth')
shopModule:addBuyableItem({'Blue Piece of Cloth'}, 5912, 5000, 'Blue Piece of Cloth')
shopModule:addBuyableItem({'Brown Piece of Cloth'}, 5913, 5000, 'Brown Piece of Cloth')
shopModule:addBuyableItem({'Yellow Piece of Cloth'}, 5914, 50000, 'Yellow Piece of Cloth')
shopModule:addBuyableItem({'Dragon Claw'}, 5919, 1500000, 'Dragon Claw')
shopModule:addBuyableItem({'Green Dragon Scale'}, 5920, 5000, 'Green Dragon Scale')
shopModule:addBuyableItem({'Heaven Blossom'}, 5921, 5000, 'Heaven Blossom')
shopModule:addBuyableItem({'Holy Orchid'}, 5922, 10000, 'Holy Orchid')
shopModule:addBuyableItem({'Hardened Bone'}, 2553, 5000, 'Hardened Bone')
shopModule:addBuyableItem({'Behemoth Claw'}, 5930, 5000, 'Behemoth Claw')
shopModule:addBuyableItem({'Demon Horn'}, 5954, 10000, 'Demon Horn')
shopModule:addBuyableItem({'Red Dragon Leather'}, 5948, 3000, 'Red Dragon Leather')
shopModule:addBuyableItem({'Bast Skirt'}, 3560, 10000, 'Bast Skirt')
shopModule:addBuyableItem({'Hook'}, 6097, 3000, 'Hook')
shopModule:addBuyableItem({'Eye Patch'}, 6098, 3000, 'Eye Patch')
shopModule:addBuyableItem({'Peg Leg'}, 6126, 4000, 'Peg Leg')
shopModule:addBuyableItem({'soul stone'}, 9930, 1000000, 'soul stone')
shopModule:addBuyableItem({'ankh'}, 6561, 10000, 'ankh')
shopModule:addBuyableItem({'fighting spirit'}, 5884, 100000, 'fighting spirit')
shopModule:addBuyableItem({'huge chunk of crude iron'}, 5892, 50000, 'huge chunk of crude iron')
shopModule:addBuyableItem({'enchanted chicken wing'}, 5891, 50000, 'enchanted chicken wing')
shopModule:addBuyableItem({'demonic essence'}, 6500, 2000, 'demonic essence')
shopModule:addBuyableItem({'elane's crossbow'}, 5947, 100000, 'elane's crossbow')
npcHandler:addModule(FocusModule:new())
Last edited: