ERROR EDITED
This code makes debug (8.6 by Ninja) or "Connecting to the game ..." all the time (10.77 official TFS).
It's implemented in onLogin creaturescript.
Client error log:
EDIT.
I've checked it wrong. Now i see that its enought for me to comment 1 of 4 while loops and it works...
It looks like i cant have 4 while loops in 'if' statement.
Code:
if vocation == 4 or vocation == 8 then
while player:getSkillLevel(SKILL_SHIELD) < 50 do
player:addSkillTries(SKILL_SHIELD, player:getVocation():getRequiredSkillTries(SKILL_SHIELD, player:getSkillLevel(SKILL_SHIELD) + 1) - player:getSkillTries(SKILL_SHIELD))
end
while player:getSkillLevel(SKILL_SWORD) < 90 do
player:addSkillTries(SKILL_SWORD, player:getVocation():getRequiredSkillTries(SKILL_SWORD, player:getSkillLevel(SKILL_SWORD) + 1) - player:getSkillTries(SKILL_SWORD))
end
while player:getSkillLevel(SKILL_AXE) < 90 do
player:addSkillTries(SKILL_AXE, player:getVocation():getRequiredSkillTries(SKILL_AXE, player:getSkillLevel(SKILL_AXE) + 1) - player:getSkillTries(SKILL_AXE))
end
while player:getSkillLevel(SKILL_CLUB) < 90 do
player:addSkillTries(SKILL_CLUB, player:getVocation():getRequiredSkillTries(SKILL_CLUB, player:getSkillLevel(SKILL_CLUB) + 1) - player:getSkillTries(SKILL_CLUB))
end
while player:getBaseMagicLevel() < 5 do
player:addManaSpent(player:getVocation():getRequiredManaSpent(player:getBaseMagicLevel() + 1) - player:getManaSpent())
end
end
This code makes debug (8.6 by Ninja) or "Connecting to the game ..." all the time (10.77 official TFS).
It's implemented in onLogin creaturescript.
Client error log:
Code:
Player Action: 053 049 046 050 053 052 046 050 049 056 046 049 050 048 058 055 049 055 052
Player.cpp 361:exception occured,reason:
Network.cpp 946:exception occured (ErrorCode = 0),reason:
Network.cpp 921: assertion failed (BufferSize = 0) (NextToWrite = 16394), reason:
BufferSize>0
EDIT.
I've checked it wrong. Now i see that its enought for me to comment 1 of 4 while loops and it works...
It looks like i cant have 4 while loops in 'if' statement.
Last edited: