• 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!

9.81 Global map with 50 quests: warzones, wote, inq, poi

anyone know how to repair this script?
script:
local pos = {
{x = 33253, y = 31081, z = 8},
{x = 33259, y = 31090, z = 8},
{x = 33266, y = 31085, z = 8},
{x = 33263, y = 31094, z = 8}
}

function doClearMissionArea(fromPos, toPos)
for x = fromPos.x, toPos.x do
for y = fromPos.y, toPos.y do
for z = fromPos.z, toPos.z do
if(getTopCreature({x = x, y = y, z = z}).uid > 0) then
if(isPlayer(getTopCreature({x = x, y = y, z = z}).uid)) then
doTeleportThing(getTopCreature({x = x, y = y, z = z}).uid, {x = 33353, y = 31410, z = 8})
doSendMagicEffect({x = 33353, y = 31410, z = 8}, CONST_ME_TELEPORT)
setPlayerStorageValue(getTopCreature({x = x, y = y, z = z}).uid, 1050, 20)
else
doRemoveCreature(getTopCreature({x = x, y = y, z = z}).uid)
end
end
end
end
end
return true
end

function onStepIn(cid, item, position, lastPosition)
start = false
if(getPlayerStorageValue(cid, 1050) == 19) then
if(item.actionid == 8014) then
for i = 1, 4 do
if(getTopCreature(pos).uid > 0) then
if(isPlayer(getTopCreature(pos).uid)) then
if(getGlobalStorageValue(8014) < 1) then
doCreatureSay(getTopCreature(pos).uid, "A clicking sound tatters the silence.", TALKTYPE_ORANGE_1)
start = true
end
end
end
end
if(start == true) then
doTransformItem(getTileItemById({x = 33265, y = 31116, z = 8}, 3653).uid), 3687)
addEvent(doTransformItem, 30 * 1000, getTileItemById({x = 33265, y = 31116, z = 8}, 3687).uid), 3653)
setGlobalStorageValue(8014, 1)
addEvent(setGlobalStorageValue, 8014, 0)
creature = ""
for k = 1, 4 do
for j = 1, 20 do
if(k < 3) then
creature = "eternal guardian"
else
creature = "lizard chosen"
end
summonPos = {x = math.random(33239, 33295), y = math.random(31100, 31132), z = 7}
addEvent(doSummonCreature, k * 30 * 1000, creature, summonPos)
addEvent(doSendMagicEffect, k * 30 * 1000, summonPos, CONST_ME_TELEPORT)
end
end
addEvent(doClearMissionArea, 5 * 30 * 1000, {x = 33239, y = 31100, z = 7}, {x = 33295, y = 31132, z = 7})
end
end
end
return true
end

thanks, i have 3hours trying to code this and nothing =/

error on console:
[3/8/2013 2:16:9] [Error - LuaInterface::loadFile] ...s/children of the revolution quest/childrenOfTheRevolutionQuestClick.lua:42: unexpected symbol near ','
[3/8/2013 2:16:9] [Error - Event::checkScript] Cannot load script (data/movements/scripts/children of the revolution quest/childrenOfTheRevolutionQuestClick.lua)
[3/8/2013 2:16:10] ...s/children of the revolution quest/childrenOfTheRevolutionQuestClick.lua:42: unexpected symbol near ','
 
and what's the correct form?
this is the line 42 of script---->addEvent(doTransformItem, 30 * 1000, getTileItemById({x = 33265, y = 31116, z = 8}, 3687).uid), 3653)

this my attempt to fix:
addEvent(doTransformItem, 30 * 1000, getTileItemById({x = 33265, y = 31116, z = 8}, 3687).uid, 3653)

- - - Updated - - -

ok i have fixed the script thanks a lot man!!
i have a now error:

[4/8/2013 14:21:57] [Error - MoveEvents Interface]
[4/8/2013 14:21:57] In a timer event called from:
[4/8/2013 14:21:57] data/movements/scripts/children of the revolution quest/childrenOfTheRevolutionQuestClick.lua:eek:nStepIn
[4/8/2013 14:21:57] Description:
[4/8/2013 14:21:57] (LuaInterface::luaDoCreateNpc) Npc with name 'lizard chosen' not found

- - - Updated - - -

[4/8/2013 14:20:25] [Error - MoveEvents Interface]
[4/8/2013 14:20:25] In a timer event called from:
[4/8/2013 14:20:25] data/movements/scripts/children of the revolution quest/childrenOfTheRevolutionQuestClick.lua:eek:nStepIn
[4/8/2013 14:20:25] Description:
[4/8/2013 14:20:25] (LuaInterface::luaDoTransformItem) Item not found

- - - Updated - - -

but when player get teleported to zalamon dont get the storage value.. =/
 
There will be no support from my side for this datapack. If you want to use scripts from it you're on your own. That's not because I'm mean it's just because I released it BECAUSE I didn't have time to fix bugs. :p
 
somebody knows how to fix the npcs ?
because there isnt npcs channel, i add the channel but npcs still doesnt working
 
somebody knows how to fix the npcs ?
because there isnt npcs channel, i add the channel but npcs still doesnt working

Use different xml files or remove/replace the parameters on broken npcs.
 
Hello... i still get error for new version of item.otb....

or else everything is fine ;)

so how can i fix this problem guys?
 
Hello... i still get error for new version of item.otb....

or else everything is fine ;)

so how can i fix this problem guys?

Map was created with the wrong otb, you have to replace Venore.
 
when im trying to start the server it says i need a newer item.otb version.

how do i get the right item.otb version for this data pack??
 
Last edited:
Back
Top