Beyond Sky
Weed is Life
I have a problem, after complete a task the System dont work more. And when coplete de quest log dont reset. My quest log is 100% TFS/SCRIPTS.
[3:37:12.324] [Error - CreatureScript Interface]
[3:37:12.333] domodlib('grizzlyAdams_conf')
[3:37:12.338] function onKill(cid, target)
[3:37:12.343] if isPlayer(target) or isSummon(target) or isNpc(target) then
[3:37:12.348] return true
[3:37:12.352] end
[3:37:12.356] for k, v in pairs(task) do
[3:37:12.360] if (v.monsterTypes and v.monsterTypes[getCreatureName(target):
lower()]) or k:lower() == getCreatureName(target):lower() then
[3:37:12.368] if getPlayerStorageValue(cid, mainStorage) == v.beginStora
geValue then
[3:37:12.380] storages = v.monsterTypes and v.monsterTypes[getCreatu
reName(target)] or v.storage
[3:37:12.389] if getPlayerStorageValue(cid, storages) <= v.count the
n
[3:37:12.396] local x, s = 0, 'You killed '
[3:37:12.400] if v.monsterTypes then
[3:37:12.404] for monster, storage in pairs(v.monsterTypes)
do
[3:37:12.415] if getPlayerStorageValue(cid, storage) ==
-1 then
[3:37:12.423] doPlayerSetStorageValue(cid, storage,
0)
[3:37:12.430] end
[3:37:12.434] if monster:lower() == getCreatureName(targ
et):lower() then
[3:37:12.441] doPlayerSetStorageValue(cid, storage,
getPlayerStorageValue(cid, storage) + 1)
[3:37:12.448] end
[3:37:12.453] x = x + getPlayerStorageValue(cid, storage
)
[3:37:12.463] s = s .. getPlayerStorageValue(cid, storag
e) .. ' ' .. monster .. ', '
[3:37:12.470] end
[3:37:12.474] else
[3:37:12.479] doPlayerSetStorageValue(cid, storages, getPlay
erStorageValue(cid, storages) + 1)
[3:37:12.486] s = s .. getPlayerStorageValue(cid, storages)
.. ' of ' .. v.count .. ' ' .. k .. '.'
[3:37:12.494] end
[3:37:12.499] s = (x > 0 and (string.sub(s, 1, string.len(s) - 2
)..'. You have killed ' .. x ..' of '.. v.count ..' '..k..'.') or s)
[3:37:12.507] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOL
E_ORANGE, s)
[3:37:12.514] if getPlayerStorageValue(cid, storages) == v.count
then
[3:37:12.521] doPlayerSetStorageValue(cid, mainStorage, v.fi
nishStorageValue)
[3:37:12.529] if v.monsterTypes then
[3:37:12.534] for monster, storage in pairs(v.monsterTyp
es) do
[3:37:12.544] doPlayerSetStorageValue(cid, storage,
0)
[3:37:12.551] end
[3:37:12.555] else
[3:37:12.559] doPlayerSetStorageValue(cid, v.storage, 0)
[3:37:12.567] end
[3:37:12.572] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CO
NSOLE_ORANGE, 'Congratulations! You have killed enough '..(v.monsterTypes and k
or getCreatureName(target)..'s')..'.')
[3:37:12.586] if getPlayerStorageValue(cid, points) < 100 an
d v.points then
[3:37:12.593] doPlayerSetStorageValue(cid, points, getPl
ayerStorageValue(cid, points) + v.points)
[3:37:12.600] doPlayerSendTextMessage(cid, TALKTYPE_ORAN
GE_1, 'You gained '..v.points..' points. Your total points is '..getPlayerStorag
eValue(cid, points)..'.')
[3:37:12.613] end
[3:37:12.618] end
[3:37:12.623] end
[3:37:12.627] end
[3:37:12.630] end
[3:37:12.634] end
[3:37:12.638] for k, v in pairs(specialTask) do
[3:37:12.642] if k:lower() == getCreatureName(target):lower() and v.storage
and getPlayerStorageValue(cid, v.storage) == v.beginBossStorageValue then
[3:37:12.651] doPlayerSetStorageValue(cid, v.storage, v.finishedBossStor
ageValue)
[3:37:12.661] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE
, 'Congratulations! You have killed '..getCreatureName(target)..'.')
[3:37:12.668] elseif k:lower() == getCreatureName(target):lower() and getPla
yerStorageValue(cid, bossesStorage) == v.beginBossStorageValue then
[3:37:12.676] doPlayerSetStorageValue(cid, bossesStorage, v.finishedBoss
StorageValue)
[3:37:12.683] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE
, 'Congratulations! You have killed '..getCreatureName(target)..'.')
[3:37:12.692] if getPlayerStorageValue(cid, points) < 100 and v.points t
hen
[3:37:12.701] doPlayerSetStorageValue(cid, points, getPlayerStorageV
alue(cid, points) + v.points)
[3:37:12.708] doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, 'You g
ained '..v.points..' points. Your total points is '..getPlayerStorageValue(cid,
points)..'.')
[3:37:12.718] end
[3:37:12.722] end
[3:37:12.726] end
[3:37:12.733] return true
[3:37:12.739] end
[3:37:12.749] Description:
[3:37:12.754] [string "..."]:55: '}' expected (to close '{' at line 54) near '['
[3:37:12.768] [Error - MoveEvents Interface]
[3:37:12.779] domodlib('grizzlyAdams_conf')
[3:37:12.785] function onStepIn(cid, item, position, lastPosition, fromPosition,
toPosition, actor)
[3:37:12.793] for k, v in pairs(specialTask) do
[3:37:12.797] if v[item.uid] and isPlayer(cid) then
[3:37:12.801] if getSpectators(v[item.uid].centerRoomPosition, v[item.ui
d].sizeRoom[1], v[item.uid].sizeRoom[2]) then
[3:37:12.811] for _, target in ipairs(getSpectators(v[item.uid].cent
erRoomPosition, v[item.uid].sizeRoom[1], v[item.uid].sizeRoom[2])) do
[3:37:12.821] if isPlayer(target) then
[3:37:12.824] return doTeleportThing(cid, fromPosition, true
) and doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Somebody fight with '..k
..'!')
[3:37:12.835] elseif isMonster(target) then
[3:37:12.839] doRemoveThing(target)
[3:37:12.844] end
[3:37:12.848] end
[3:37:12.853] end
[3:37:12.858] if getPlayerStorageValue(cid, bossesStorage) == v.beginBos
sStorageValue then
[3:37:12.868] doTeleportThing(cid, v[item.uid].centerRoomPosition, t
rue)
[3:37:12.877] doSendMagicEffect(v[item.uid].centerRoomPosition, v[it
em.uid].effect)
[3:37:12.884] doSendMagicEffect(v[item.uid].bossSummonPlace, v[item.
uid].bossEffect)
[3:37:12.892] return doCreateMonster(k, v[item.uid].bossSummonPlace)
[3:37:12.901] end
[3:37:12.905] return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Y
ou can\'t enter here!')
[3:37:12.912] elseif v[item.uid-100] and isPlayer(cid) then
[3:37:12.915] if getSpectators(v[item.uid-100].centerRoomPosition, v[ite
m.uid-100].sizeRoom[1], v[item.uid-100].sizeRoom[2]) then
[3:37:12.922] for _, target in ipairs(getSpectators(v[item.uid-100].
centerRoomPosition, v[item.uid-100].sizeRoom[1], v[item.uid-100].sizeRoom[2])) d
o
[3:37:12.935] if isMonster(target) then
[3:37:12.941] doRemoveThing(target)
[3:37:12.947] end
[3:37:12.952] end
[3:37:12.956] end
[3:37:12.961] return true
[3:37:12.965] end
[3:37:12.970] end
[3:37:12.976] return true
[3:37:12.981] end
[3:37:12.990] Description:
[3:37:12.994] [string "..."]:55: '}' expected (to close '{' at line 54) near '['
> > Loading GrizzlyAdams.xml...
[Error - CreatureScript Interface]
buffer
Description:
[string "task = {..."]:54: '}' expected (to close '{' at line 53) near '['
[Error - MoveEvents Interface]
buffer
Description:
[string "task = {..."]:54: '}' expected (to close '{' at line 53) near '['
done.
How to Compile quests.xml in debian 6.0?
<quest name="Killing in the Name of..." startstorageid="14503" startstoragevalue="1">
<mission name="Turmoil of War" storageid="14004" startvalue="0" endvalue="5001">
<missionstate id="0-5000" description="Budrik asked you to kill 5000 minotaurs for him. You already killed [B][I]|STATE| [/I][/B]minotaurs."/>
<missionstate id="5001" description="You have slain 5000 minotaurs and fought The Horned Fox for Budrik and the whole dwarven kind."/>
</mission>