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

CreatureEvent NPC Grizzly Adams - almost how RL Tibia.

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.
 
Done. I rewrite all of script. First post is edited. Now is all correct.

Note!
Entering teleport have uid fro 5300 to 5321, escape teleport have uid how entrance tp - 100, so if entering have uid 5300 then escape tp have 5200. Simply and usefull.
 
have a problem... TFS report this.

[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 '['
 
Last edited:
I have a problem...
If you can to help me...
> > 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.
 
Last edited:
I read some posts and when i write "join" than all is OK ; p
But i've got error with mods \/ down post
 
Last edited:
Ok. I dont use your script. It isn't good.... it is good for server when somebody like fast custom... but good for you waste of time. ; p
 
@up i do this ;)


Doesn't work, when i write join > task i take task with giant spiders and i dont have it in quest log, then when I go and ask about task does npc not correspond only cancel.

REV. 3777
 
Hello Sweddy! I found some on the internet kodzik | STATE | need to insert in the quest log.
For me showing 0 because I do not have monsters on the server, I can not see if it works but it should work under 0.4 test it and msg me

test code
Code:
  <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>
 
Please can someone help me, i dont know how to setup this mod :eek:?

Should i paste it in MODS map? or in data/npc map?

Because i got this error message:

[Error - Npc::loadFromXml] Malformed npc file (mods/npc/grizzly adams.xml).

Thanks.
 
Back
Top