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

Debug Plz Help

phantom phoenix

New Member
Joined
Apr 22, 2009
Messages
12
Reaction score
0
i have debug :S.
For example:
i have lvl 10 char i drink lvl 80+ pot and degub error.
How can I solve the problem???
Server : Servfull 2.2 Rl Map
Plz Help...
 
i have debug :S.
For example:
i have lvl 10 char i drink lvl 80+ pot and degub error.
How can I solve the problem???
Server : Servfull 2.2 Rl Map
Plz Help...

I think you got a error in your potions(fluids?).lua/xml file.

Try to search for a new potion(fluids) script and see if that works, i can post a script when im home (school atm)
 
local ultimateHealthPot = 8473
local greatHealthPot = 7591
local greatManaPot = 7590
local greatSpiritPot = 8472
local strongHealthPot = 7588
local strongManaPot = 7589
local healthPot = 7618
local manaPot = 7620
local smallHealthPot = 8704
local antidotePot = 8474
local greatEmptyPot = 7635
local strongEmptyPot = 7634
local emptyPot = 7636

local antidote = createCombatObject()
setCombatParam(antidote, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(antidote, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(antidote, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE)
setCombatParam(antidote, COMBAT_PARAM_AGGRESSIVE, FALSE)
setCombatParam(antidote, COMBAT_PARAM_DISPEL, CONDITION_POISON)

local exhaust = createConditionObject(CONDITION_EXHAUST_HEAL)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, getConfigInfo('timeBetweenExActions'))

function onUse(cid, item, fromPosition, itemEx, toPosition)
if(itemEx.uid ~= cid or itemEx.itemid ~= 1) then
return TRUE
end

if(getCreatureCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE) then
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
return TRUE
end

if(item.itemid == antidotePot) then
if(doCombat(cid, antidote, numberToVariant(cid)) == LUA_ERROR) then
return FALSE
end
doRemoveCondition(cid, CONDITION_PARALYZE)
doAddCondition(cid, exhaust)

doTransformItem(item.uid, emptyPot)
elseif(item.itemid == smallHealthPot) then
if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 50, 100, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
doRemoveCondition(cid, CONDITION_PARALYZE)
doAddCondition(cid, exhaust)

doTransformItem(item.uid, emptyPot)
elseif(item.itemid == healthPot) then
if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 100, 200, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
doAddCondition(cid, exhaust)

doTransformItem(item.uid, emptyPot)
elseif(item.itemid == manaPot) then
if(doTargetCombatMana(0, cid, 70, 130, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
doRemoveCondition(cid, CONDITION_PARALYZE)
doAddCondition(cid, exhaust)

doTransformItem(item.uid, emptyPot)
elseif(item.itemid == strongHealthPot) then
if(not(isKnight(cid) or isPaladin(cid)) or (getPlayerLevel(cid) < 50)) and not(getPlayerGroupId(cid) >= 2) then
doCreatureSay(cid, "This potion can only be consumed by paladins and knights of level 50 or higher.", TALKTYPE_ORANGE_1)
return TRUE
end

if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 200, 400, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
doAddCondition(cid, exhaust)

doTransformItem(item.uid, strongEmptyPot)
elseif(item.itemid == strongManaPot) then
if(not(isSorcerer(cid) or isDruid(cid) or isPaladin(cid)) or (getPlayerLevel(cid) < 50)) and not(getPlayerGroupId(cid) >= 2) then
doCreatureSay(cid, "This potion can only be consumed by sorcerers, druids and paladins of level 50 or higher.", TALKTYPE_ORANGE_1)
return TRUE
end

if(doTargetCombatMana(0, cid, 110, 190, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
doRemoveCondition(cid, CONDITION_PARALYZE)
doAddCondition(cid, exhaust)

doTransformItem(item.uid, strongEmptyPot)
elseif(item.itemid == greatSpiritPot) then
if(not(isPaladin(cid)) or (getPlayerLevel(cid) < 80)) and not(getPlayerGroupId(cid) >= 2) then
doCreatureSay(cid, "This potion can only be consumed by paladins of level 80 or higher.", TALKTYPE_ORANGE_1)
return TRUE
end

if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 200, 400, CONST_ME_MAGIC_BLUE) == LUA_ERROR or doTargetCombatMana(0, cid, 110, 190, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
doRemoveCondition(cid, CONDITION_PARALYZE)
doAddCondition(cid, exhaust)

doTransformItem(item.uid, greatEmptyPot)
elseif(item.itemid == greatHealthPot) then
if(not(isKnight(cid)) or (getPlayerLevel(cid) < 80)) and not(getPlayerGroupId(cid) >= 2) then
doCreatureSay(cid, "This potion can only be consumed by knights of level 80 or higher.", TALKTYPE_ORANGE_1)
return TRUE
end

if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 500, 700, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
doAddCondition(cid, exhaust)

doTransformItem(item.uid, greatEmptyPot)
elseif(item.itemid == greatManaPot) then
if(not(isSorcerer(cid) or isDruid(cid)) or (getPlayerLevel(cid) < 80)) and not(getPlayerGroupId(cid) >= 2) then
doCreatureSay(cid, "This potion can only be consumed by sorcerers and druids of level 80 or higher.", TALKTYPE_ORANGE_1)
return TRUE
end

if(doTargetCombatMana(0, cid, 200, 300, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
doRemoveCondition(cid, CONDITION_PARALYZE)
doAddCondition(cid, exhaust)

doTransformItem(item.uid, greatEmptyPot)
elseif(item.itemid == ultimateHealthPot) then
if(not(isKnight(cid)) or (getPlayerLevel(cid) < 130)) and not(getPlayerGroupId(cid) >= 2) then
doCreatureSay(cid, "This potion can only be consumed by knights of level 130 or higher.", TALKTYPE_ORANGE_1)
return TRUE
end

if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 800, 1000, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
doAddCondition(cid, exhaust)

doTransformItem(item.uid, greatEmptyPot)
end
return TRUE
end

-----
Oke ?
 
client_assertions


----- 24/04/2009 20:03:10 - Master Thor (78.181.150.56) -----
Debug Assertion 8.40 Communication.cpp 2686
Fri Apr 24 20:02:56 2009
Windows Version: 5.1 build 2600 on 2 with Service Pack 2
Graphic Engine: DirectX5 (0)
Last Packet Types: 170 133 132 131 106 140 140 162 132 131
Last Packet: 170 000 000 000 000 011 000 077 097 115 116 101 114 032 084 104
Player Position: [701,641,7]
Player Name: Master Thor (Zafer Ots)
Player Action: 055 056 046 049 054 055 046 049 048 057 046 050 050 056 058 055 049 055 049
Player.cpp 360: exception occurred, reason:
Network.cpp 990: exception occurred (ErrorCode = 0), reason:
Control.cpp 1319: exception occurred (Type = 170) (MainWindow = 19536680), reason:
Communication.cpp 2692: exception occurred (Mode = 18) (Channel = 0), reason:
Communication.cpp 2686: unknown talk mode (Mode = 18), reason:
[bug0000649]
Comment:
----- 24/04/2009 20:03:33 - Xekoroth (94.120.146.15) -----
Debug Assertion 8.40 Communication.cpp 2686
Fri Apr 24 20:03:26 2009
Windows Version: 5.1 build 2600 on 2 with Service Pack 2
Graphic Engine: DirectX9 (2)
Last Packet Types: 170 109 109 140 144 140 170 109 160 160
Last Packet: 170 000 000 000 000 011 000 077 097 115 116 101 114 032 084 104
Player Position: [692,648,7]
Player Name: Xekoroth (Zafer Ots)
Player Action: 055 056 046 049 054 055 046 049 048 057 046 050 050 056 058 055 049 055 049
Player.cpp 360: exception occurred, reason:
Network.cpp 990: exception occurred (ErrorCode = 0), reason:
Control.cpp 1319: exception occurred (Type = 170) (MainWindow = 149888736), reason:
Communication.cpp 2692: exception occurred (Mode = 18) (Channel = 0), reason:
Communication.cpp 2686: unknown talk mode (Mode = 18), reason:
[bug0000649]
Comment:
----- 24/04/2009 20:03:34 - Master Thor (78.181.150.56) -----
Debug Assertion 8.40 Communication.cpp 2686
Fri Apr 24 20:03:28 2009
Windows Version: 5.1 build 2600 on 2 with Service Pack 2
Graphic Engine: DirectX5 (0)
Last Packet Types: 170 102 103 109 109 140 144 140 170 170
Last Packet: 170 000 000 000 000 011 000 077 097 115 116 101 114 032 084 104
Player Position: [694,648,7]
Player Name: Master Thor (Zafer Ots)
Player Action: 055 056 046 049 054 055 046 049 048 057 046 050 050 056 058 055 049 055 049
Player.cpp 360: exception occurred, reason:
Network.cpp 990: exception occurred (ErrorCode = 0), reason:
Control.cpp 1319: exception occurred (Type = 170) (MainWindow = 19536680), reason:
Communication.cpp 2692: exception occurred (Mode = 18) (Channel = 0), reason:
Communication.cpp 2686: unknown talk mode (Mode = 18), reason:
[bug0000649]
Comment:
----- 24/04/2009 20:04:19 - Elite Leon (78.170.185.57) -----
Debug Assertion 8.40 Communication.cpp 2686
Fri Apr 24 20:04:20 2009
Windows Version: 5.1 build 2600 on 2 with Service Pack 2
Graphic Engine: DirectX5 (0)
Last Packet Types: 170 140 140 143 170 030 103 109 103 109
Last Packet: 170 000 000 000 000 010 000 069 108 105 116 101 032 076 101 111
Player Position: [687,634,7]
Player Name: Elite Leon (Zafer Ots)
Player Action: 055 056 046 049 054 055 046 049 048 057 046 050 050 056 058 055 049 055 049
Player.cpp 360: exception occurred, reason:
Network.cpp 990: exception occurred (ErrorCode = 0), reason:
Control.cpp 1319: exception occurred (Type = 170) (MainWindow = 111156992), reason:
Communication.cpp 2692: exception occurred (Mode = 18) (Channel = 0), reason:
Communication.cpp 2686: unknown talk mode (Mode = 18), reason:
[bug0000649]
Comment:
----- 24/04/2009 20:04:24 - Master Thor (78.181.150.56) -----
Debug Assertion 8.40 Communication.cpp 2686
Fri Apr 24 20:04:17 2009
Windows Version: 5.1 build 2600 on 2 with Service Pack 2
Graphic Engine: DirectX5 (0)
Last Packet Types: 170 160 160 140 030 140 162 143 170 109
Last Packet: 170 000 000 000 000 010 000 069 108 105 116 101 032 076 101 111
Player Position: [687,636,7]
Player Name: Master Thor (Zafer Ots)
Player Action: 055 056 046 049 054 055 046 049 048 057 046 050 050 056 058 055 049 055 049
Player.cpp 360: exception occurred, reason:
Network.cpp 990: exception occurred (ErrorCode = 0), reason:
Control.cpp 1319: exception occurred (Type = 170) (MainWindow = 19536680), reason:
Communication.cpp 2692: exception occurred (Mode = 18) (Channel = 0), reason:
Communication.cpp 2686: unknown talk mode (Mode = 18), reason:
[bug0000649]


Plz Help
 
Back
Top