arthurluna
Member
- Joined
- Apr 12, 2008
- Messages
- 180
- Reaction score
- 15
Someone help me in Quest Elemental Spheres Quest, I'm in trouble.
trying to use this script:
ERRO
trying to use this script:
HTML:
http://otland.net/f132/scripts-elemental-spheres-quest-82037/index5.html
ERRO
Code:
[13:40:12.072] [Error - Test Interface]
[13:40:12.072] data/actions/scripts/Quest/Elemental/machine.lua
[13:40:12.072] Description:
[13:40:12.072] (luaGetCreatureStorage) Creature not found
[13:40:12.072] [Error - Test Interface]
[13:40:12.072] data/actions/scripts/Quest/Elemental/machine.lua
[13:40:12.072] Description:
[13:40:12.072] data/actions/scripts/Quest/Elemental/machine.lua:22: attempt to index global 'item' (a nil value)
[13:40:12.072] [Error - Event::checkScript] Cannot load script (data/actions/scripts/Quest/Elemental/machine.lua)
Code:
local config = {
machUID = 1400,
machStorage = 1400,
arkStorage = 1401,
overStorage = 1402,
emachAID = 1403,
emachStorage = 1403,
lordStorage = 1404,
resStorage = 1405,
res2Storage = 1406,
PallyPos = {x=33262, y=32201, z=13},
SorcerPos = {x=33180, y=32198, z=13},
DruidPos = {x=33329, y=32075, z=13},
KninaPos = {x=33086, y=32094, z=13},
messNotGem = "You can't have enchanted gem for you profession.",
messNotArk = "You can't proceed, go back and talk with Arkulius.",
effect = 11 --you can test effects with !z command (ex. !z 23)
}
--/CONFIG
local machUSE = getPlayerStorageValue(cid, 1400)
if item.uid == 1400 and machUSE == -1 then
doPlayerSendCancel(cid,config.messNotArk)
elseif item.uid == 1400 and machUSE >= 1 then
if isPaladin(cid) and item.itemid == 7759 then
doRemoveItem(item.uid, 1)
doSendMagicEffect(fromPosition, config.effect)
setPlayerStorageValue(cid, 1400, machUSE + 1)
elseif isSorcerer(cid) and item.itemid == 7760 then
doRemoveItem(item.uid, 1)
doSendMagicEffect(fromPosition, config.effect)
setPlayerStorageValue(cid, 1400, machUSE + 1)
elseif isDruid(cid) and item.itemid == 7761 then
doRemoveItem(item.uid, 1)
doSendMagicEffect(fromPosition, config.effect)
setPlayerStorageValue(cid, 1400, machUSE + 1)
elseif isKnight(cid) and item.itemid == 7762 then
doRemoveItem(item.uid, 1)
doSendMagicEffect(fromPosition, config.effect)
setPlayerStorageValue(cid, 1400, machUSE + 1)
elseif item.uid == 1400 and machUSE == 21 then
if isPaladin(cid) then
doTeleportThing(cid, config.PallyPos)
setPlayerStorageValue(cid, 1400, machUSE - 20)
elseif isSorcerer(cid) then
doTeleportThing(cid, config.SorcerPos)
setPlayerStorageValue(cid, 1400, machUSE - 20)
elseif isDruid(cid) then
doTeleportThing(cid, config.DruidPos)
setPlayerStorageValue(cid, 1400, machUSE - 20)
elseif isKnight(cid) then
doTeleportThing(cid, config.KninaPos)
setPlayerStorageValue(cid, 1400, machUSE - 20)
else
doPlayerSendCancel(cid,config.messNotGem)
end
end
end