correction
it's ultra mega super hyper lag
mine took over 2min lol
ultimate extreme mega super hyper lagzor its that !
correction
it's ultra mega super hyper lag
mine took over 2min lol
I have some questions..
-What does mean a BETA version?.. thats mean like a trial version?
-Why The Forgotten Server v0.3 is a beta version? why cant be like tfs v0.2 that isnt a beta version, just have patchs..?
ultimate extreme mega super hyper lagzor its that !
Omg i cant load map :S after i putted yalahar,donate island :S
Maybe you have put yalahar map to map not converted to 8.4?
local MIN = 700
local MAX = 800
local EMPTY_POTION = 7635
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) == FALSE then
return FALSE
end
if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
return TRUE
end
if((not(isKnight(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 130) and getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then
doCreatureSay(itemEx.uid, "Only knights of level 130 or above may drink this fluid.", TALKTYPE_ORANGE_1)
return TRUE
end
if doCreatureAddHealth(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then
return FALSE
end
doAddCondition(cid, exhaust)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
doTransformItem(item.uid, EMPTY_POTION)
return TRUE
end
local MIN = 700
local MAX = 800
local EMPTY_POTION = 7635
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) == FALSE then
return FALSE
end
if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
return TRUE
end
if((not(isKnight(itemEx.uid)) or getPlayerLevel(itemEx.uid) >= 130) and getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then
doCreatureSay(itemEx.uid, "Only knights of level 130 or above may drink this fluid.", TALKTYPE_ORANGE_1)
return TRUE
end
if doCreatureAddHealth(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then
return FALSE
end
doAddCondition(cid, exhaust)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
doTransformItem(item.uid, EMPTY_POTION)
return TRUE
end
Both are 8.4 -.- im not stupid and try import 8.31 map to 8.4
I changed the map code and compiled, cleaning map are works perfecty now.
[22/01/2009 18:54:28] Lua Script Error: [MoveEvents Interface]
[22/01/2009 18:54:28] data/movements/scripts/FerumbrasEntrance1.lua:onStepIn
[22/01/2009 18:54:28] data/movements/scripts/FerumbrasEntrance1.lua:11: attempt to perform arithmetic on global 'Total_Damage' (a nil value)
[22/01/2009 18:54:28] stack traceback:
[22/01/2009 18:54:28] data/movements/scripts/FerumbrasEntrance1.lua:11: in function <data/movements/scripts/FerumbrasEntrance1.lua:1>
function onStepIn(cid, item, pos)
APPLE_ID = 2674
ACTION_ID = 10101 -- Actionid of the tile that teleport you if you have an apple
if (item.actionid == 10101) then
Dmg_Random = math.random(100,500)
if (getPlayerItemCount(cid, 2674) ~= 0) then
doTeleportThing(cid, {x=1052, y=749, z=7})
doPlayerRemoveItem(cid, 2674 ,0)
else
doTeleportThing(cid, {x=1052, y=745, z=7})
doCreatureAddHealth(cid, -Total_Damage)
doSendAnimatedText(pos, Total_Damage, 186)
end
if getCreatureHealth(cid) < Dmg_Random then
Total_Damage = getPlayerHealth(cid)
else
Total_Damage = Dmg_Random
end
end
end
[22/01/2009 18:46:05] Lua Script Error: [MoveEvents Interface]
[22/01/2009 18:46:05] data/movements/scripts/swimming/west.lua:onStepIn
[22/01/2009 18:46:05] data/movements/scripts/swimming/swimlib.lua:17: attempt to call global 'queryTileAddThing' (a nil value)
[22/01/2009 18:46:05] stack traceback:
[22/01/2009 18:46:05] data/movements/scripts/swimming/swimlib.lua:17: in function <data/movements/scripts/swimming/swimlib.lua:10>
[22/01/2009 18:46:05] (tail call): ?
[22/01/2009 18:46:10] Lua Script Error: [MoveEvents Interface]
[22/01/2009 18:46:10] data/movements/scripts/swimming/south.lua:onStepIn
[22/01/2009 18:46:10] data/movements/scripts/swimming/swimlib.lua:17: attempt to call global 'queryTileAddThing' (a nil value)
[22/01/2009 18:46:10] stack traceback:
[22/01/2009 18:46:10] data/movements/scripts/swimming/swimlib.lua:17: in function <data/movements/scripts/swimming/swimlib.lua:10>
[22/01/2009 18:46:10] (tail call): ?
dofile('data/movements/scripts/swimming/swimlib.lua')
function onStepIn(cid, item, pos)
return checkSwim(cid, WEST, EAST)
end
dofile('data/movements/scripts/swimming/swimlib.lua')
function onStepIn(cid, item, pos)
return checkSwim(cid, SOUTH, NORTH)
end
local conditions =
{
CONDITION_POISON, CONDITION_FIRE, CONDITION_ENERGY,
CONDITION_PARALYZE, CONDITION_DRUNK, CONDITION_DROWN,
CONDITION_FREEZING, CONDITION_DAZZLED, CONDITION_CURSED
}
local outfit = {lookType = 267, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
function checkSwim(cid, swimDir, backDir)
local posNow = getThingPos(cid)
if(hasCondition(cid, CONDITION_OUTFIT) == TRUE and getCreatureOutfit(cid).lookType == outfit.lookType) then
doMoveCreature(cid, backDir)
doRemoveCondition(cid, CONDITION_OUTFIT)
else
if(queryTileAddThing(cid, getPosByDir(posNow, swimDir), 4) ~= RETURNVALUE_NOERROR) then
return FALSE
end
-- Remove all bad conditions before swimming
for i, v in ipairs(conditions) do
if(hasCondition(cid, v) == TRUE) then
doRemoveCondition(cid, v)
end
end
doMoveCreature(cid, swimDir)
doSetCreatureOutfit(cid, outfit, -1)
doSendMagicEffect(getThingPos(cid), CONST_ME_WATERSPLASH)
end
return TRUE
end
Explain. Please!I changed the map code and compiled, cleaning map are works perfecty now.
In the ferumbras entrance script, the error is because you didn't declared TOTAL_DAMAGE.Yo am here again. Could anyone tell me what's wrong in here?
PHP:[22/01/2009 18:54:28] Lua Script Error: [MoveEvents Interface] [22/01/2009 18:54:28] data/movements/scripts/FerumbrasEntrance1.lua:onStepIn [22/01/2009 18:54:28] data/movements/scripts/FerumbrasEntrance1.lua:11: attempt to perform arithmetic on global 'Total_Damage' (a nil value) [22/01/2009 18:54:28] stack traceback: [22/01/2009 18:54:28] data/movements/scripts/FerumbrasEntrance1.lua:11: in function <data/movements/scripts/FerumbrasEntrance1.lua:1>
my FerumbrasEntrance1.lua
Code:function onStepIn(cid, item, pos) APPLE_ID = 2674 ACTION_ID = 10101 -- Actionid of the tile that teleport you if you have an apple if (item.actionid == 10101) then Dmg_Random = math.random(100,500) if (getPlayerItemCount(cid, 2674) ~= 0) then doTeleportThing(cid, {x=1052, y=749, z=7}) doPlayerRemoveItem(cid, 2674 ,0) else doTeleportThing(cid, {x=1052, y=745, z=7}) doCreatureAddHealth(cid, -Total_Damage) doSendAnimatedText(pos, Total_Damage, 186) end if getCreatureHealth(cid) < Dmg_Random then Total_Damage = getPlayerHealth(cid) else Total_Damage = Dmg_Random end end end
PHP:[22/01/2009 18:46:05] Lua Script Error: [MoveEvents Interface] [22/01/2009 18:46:05] data/movements/scripts/swimming/west.lua:onStepIn [22/01/2009 18:46:05] data/movements/scripts/swimming/swimlib.lua:17: attempt to call global 'queryTileAddThing' (a nil value) [22/01/2009 18:46:05] stack traceback: [22/01/2009 18:46:05] data/movements/scripts/swimming/swimlib.lua:17: in function <data/movements/scripts/swimming/swimlib.lua:10> [22/01/2009 18:46:05] (tail call): ? [22/01/2009 18:46:10] Lua Script Error: [MoveEvents Interface] [22/01/2009 18:46:10] data/movements/scripts/swimming/south.lua:onStepIn [22/01/2009 18:46:10] data/movements/scripts/swimming/swimlib.lua:17: attempt to call global 'queryTileAddThing' (a nil value) [22/01/2009 18:46:10] stack traceback: [22/01/2009 18:46:10] data/movements/scripts/swimming/swimlib.lua:17: in function <data/movements/scripts/swimming/swimlib.lua:10> [22/01/2009 18:46:10] (tail call): ?
my west.lua
Code:dofile('data/movements/scripts/swimming/swimlib.lua') function onStepIn(cid, item, pos) return checkSwim(cid, WEST, EAST) end
my south.lua
Code:dofile('data/movements/scripts/swimming/swimlib.lua') function onStepIn(cid, item, pos) return checkSwim(cid, SOUTH, NORTH) end
my swimlib.lua
Code:local conditions = { CONDITION_POISON, CONDITION_FIRE, CONDITION_ENERGY, CONDITION_PARALYZE, CONDITION_DRUNK, CONDITION_DROWN, CONDITION_FREEZING, CONDITION_DAZZLED, CONDITION_CURSED } local outfit = {lookType = 267, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0} function checkSwim(cid, swimDir, backDir) local posNow = getThingPos(cid) if(hasCondition(cid, CONDITION_OUTFIT) == TRUE and getCreatureOutfit(cid).lookType == outfit.lookType) then doMoveCreature(cid, backDir) doRemoveCondition(cid, CONDITION_OUTFIT) else if(queryTileAddThing(cid, getPosByDir(posNow, swimDir), 4) ~= RETURNVALUE_NOERROR) then return FALSE end -- Remove all bad conditions before swimming for i, v in ipairs(conditions) do if(hasCondition(cid, v) == TRUE) then doRemoveCondition(cid, v) end end doMoveCreature(cid, swimDir) doSetCreatureOutfit(cid, outfit, -1) doSendMagicEffect(getThingPos(cid), CONST_ME_WATERSPLASH) end return TRUE end
queryTileAddThing = doTileQueryAdd