• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Help Elemental Spheres Quest

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:

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
 
try
LUA:
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) 
} 	
	local machUSE = getPlayerStorageValue(cid, config.machStorage)
    if item.uid == config.machUID and machUSE == -1 then
	 doPlayerSendCancel(cid,config.messNotArk)
	end
	elseif item.uid == config.machUID and machUSE >= 1 then	
		if isPaladin(cid) and itemid == 7759 then
		 doRemoveItem(item.uid, 1)
         doSendMagicEffect(fromPosition, config.effect) 
		 setPlayerStorageValue(cid, config.machStorage, machUSE + 1)		 
	    elseif isSorcerer(cid) and itemid == 7760 then
		 doRemoveItem(item.uid, 1)
         doSendMagicEffect(fromPosition, config.effect) 
		 setPlayerStorageValue(cid, config.machStorage, machUSE + 1)		 
	    elseif isDruid(cid) and itemid == 7761 then
		 doRemoveItem(item.uid, 1)
         doSendMagicEffect(fromPosition, config.effect) 
		 setPlayerStorageValue(cid, config.machStorage, machUSE + 1)
		elseif isKnight(cid) and itemid == 7762 then
		 doRemoveItem(item.uid, 1)
         doSendMagicEffect(fromPosition, config.effect) 
		 setPlayerStorageValue(cid, config.machStorage, machUSE + 1)
	elseif item.uid == config.machUID and machUSE == 21 then
         if isPaladin(cid) then	
		 doTeleportThing(cid, config.PallyPos)
		 setPlayerStorageValue(cid, config.machStorage, machUSE - 20)
	     elseif isSorcerer(cid) then
		 doTeleportThing(cid, config.SorcerPos)
		 setPlayerStorageValue(cid, config.machStorage, machUSE - 20)
         elseif isDruid(cid) then
		 doTeleportThing(cid, config.DruidPos)
		 setPlayerStorageValue(cid, config.machStorage, machUSE - 20)
	     elseif isKnight(cid) then
		 doTeleportThing(cid, config.KninaPos)
		 setPlayerStorageValue(cid, config.machStorage, machUSE - 20)		 
	else
	 doPlayerSendCancel(cid,config.messNotGem)
	end
	
 end
 end
 
script 9.83?

- - - Updated - - -

ERROO


[16:43:08.561] [Warning - Actions::registerEvent] Duplicate registered item id: 5710
[16:43:08.005] [Error - LuaInterface::loadFile] data/actions/scripts/Quest/Elemental/machine.lua:23: '<eof>' expected near 'elseif'
[16:43:08.005] [Error - Event::checkScript] Cannot load script (data/actions/scripts/Quest/Elemental/machine.lua)
[16:43:08.005] data/actions/scripts/Quest/Elemental/machine.lua:23: '<eof>' expected near 'elseif'
 
Back
Top