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

Solved Grizzly Adams TFS 0.3.6 try change for 0.2.14. not working.

Goo Goo

Member
Joined
Apr 20, 2010
Messages
42
Reaction score
10
I have a Grizzly Adams npc that worked great on tfs 0.3.6. I thought why not move it over to mystic spirit 0.2.14 when I decided to start fooling with my OT again. The reason I changed was because the server I have for tfs 0.3.6 used client 8.54 and with 0.2.14 I get to use client 9.60 and alot of the nice features that come with it. Mostly auto stacking stuff in your backpack. Also, I've had this for a long time I think I got from otfans.com when they were still around back before the site went down and came back up again.
So anyway, I started out just moving it over. When I started the server I got
Code:
doCreatureSetStorage is nil
error or something similar so changed all that stuff to
Code:
doPlayerSetStorageValue
. Since that is what's listed in forgottenserverv0.2.14\Mystic Spirit\doc\LUA_FUNCTIONS. That got rid of all my errors.
I can now start a task but it never counts the kills. So below I will list every thing I have done so far.
And hopefully someone will be able to figure out what i'm missing because, I'm stumped. And Googling and searching the forum directly only took me to posts of people requesting grizzly adams or a totally different version that I have.


FOR NPC:
Added Grizzly Adams.xml to \data\npc\Grizzly Adams.xml
Code:
http://pastebin.com/eT2PmuE0


Then added killinginthenameof.lua to ... \data\npc\scripts\killinginthenameof.lua
Code:
http://pastebin.com/1a5iLmap


For CREATURE SCRIPTS:
Then added this line to \data\creaturescripts\creaturescprits.xml
PHP:
    <event type="kill" name="KillingInTheNameOf" event="script" value="killinginthenameof.lua"/>

Then created killinginthenameof.lua \data\creaturescripts\scripts\killinginthenameof.lua
Code:
http://pastebin.com/UqVZhiEx


and this line inside \data\creaturescripts\scripts\login.lua
PHP:
registerCreatureEvent(cid, "KillingInTheNameOf")

If anyone could give me pointers to get it to work on 0.2.14 or tell me if its even possible or not that would be great also. Thanks in advance.

P.S. Sorry for not posting the code directly here but I hit my 1000 character limit. so figured the pastebin would be the easiest way.
 
Tried this one also http://otland.net/threads/grizzly-a...me-of-quest-all-tasks-more-real-tibia.159150/
gave me console error
Code:
[22/07/2013 10:28:53] Lua Script Error: [Npc interface]
[22/11/2013 10:28:53] data/npc/scripts/KillingInTheNameOf.lua:onCreatureSay
[22/11/2013 10:28:53] data/npc/scripts/KillingInTheNameOf.lua:42: attempt to call global 'canStartTask' (a nil value)
[22/11/2013 10:28:53] stack traceback:
[22/11/2013 10:28:53]    [C]: in function 'canStartTask'
[22/11/2013 10:28:53]    data/npc/scripts/KillingInTheNameOf.lua:42: in function 'callback'
[22/11/2013 10:28:53]    data/npc/lib/npcsystem/npchandler.lua:390: in function 'onCreatureSay'
[22/11/2013 10:28:53]    data/npc/scripts/KillingInTheNameOf.lua:8: in function <data/npc/scripts/KillingInTheNameOf.lua:8>
 
Figured it out, finally. So incase anyone else goes searching. The fix is below.

This
PHP:
<event type="kill" name="KillingInTheNameOf" event="script" value="killinginthenameof.lua"/>

Needs to be this
PHP:
<event type="kill" name="KillingInTheNameOf" script="killinginthenameof.lua"/>
 
Back
Top