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
error or something similar so changed all that stuff to
. 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
Then added killinginthenameof.lua to ... \data\npc\scripts\killinginthenameof.lua
For CREATURE SCRIPTS:
Then added this line to \data\creaturescripts\creaturescprits.xml
Then created killinginthenameof.lua \data\creaturescripts\scripts\killinginthenameof.lua
and this line inside \data\creaturescripts\scripts\login.lua
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.
So anyway, I started out just moving it over. When I started the server I got
Code:
doCreatureSetStorage is nil
Code:
doPlayerSetStorageValue
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.