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

Npc bugging.

Minimii

New Member
Joined
Dec 3, 2008
Messages
749
Reaction score
3
Location
Sweden, Piteå
Why do I get this error message when I try to summon rune seller.

[27/02/2009 13:11:28] [Notice - Npc::Npc] NPC Name: Rune Seller - autowalk has been deprecated, use walkinterval.

[27/02/2009 13:11:28] Lua Script Error: [Npc interface]
[27/02/2009 13:11:28] data/npc/scripts/runes.lua

[27/02/2009 13:11:28] data/npc/lib/npcsystem/modules.lua:764: attempt to call global 'getItemNameById' (a nil value)
[27/02/2009 13:11:28] [Warning - NpcScript::NpcScript] Can not load script: data/npc/scripts/runes.lua

Using tfs 0.2 mystic spirit.
 
In file data/npc/lib/npcsystem/modules.lua change all:
PHP:
getItemNameById
to
PHP:
getItemName

Or just use original, unmodified NPC core data files (in data/npc/lib/) from TFS 0.2
 
In file data/npc/lib/npcsystem/modules.lua change all:
PHP:
getItemNameById
to
PHP:
getItemName

Or just use original, unmodified NPC core data files (in data/npc/lib/) from TFS 0.2

Thank you, Cykotitan!

EDIT: Why do I get this error message when I try to start the server:
[27/02/2009 15:02:46] [Warning - Spells::registerEvent] Duplicate registered rune with id: 2298
[27/02/2009 15:02:46] Warning: [Event::loadScript] Can not load script. data/talkactions/scripts/jailing.lua
[27/02/2009 15:02:46] cannot open data/talkactions/scripts/jailing.lua: No such file or directory
[27/02/2009 15:02:46] Warning: [Event::loadScript] Can not load script. data/talkactions/scripts/jailing.lua
[27/02/2009 15:02:46] cannot open data/talkactions/scripts/jailing.lua: No such file or directory
 
You have a rune id twice in the spells.xml file and the jailing.lua script does not exist (but you are linking to it through the actions.xml file). Also, change all autowalk to walkinterval in your NPCs.
 
You have a rune id twice in the spells.xml file and the jailing.lua script does not exist (but you are linking to it through the actions.xml file). Also, change all autowalk to walkinterval in your NPCs.

Thanks, Makr0mango! Now everything seems to work.

But I got one last question how can I make my manarune have unlimited charges?=)
 
Go to your items.xml and find something like this:

PHP:
	<item id="item_id_of_manarune" article="a" name="manarune">
		<attribute key="runeSpellName" value="a spell"/>
		<attribute key="weight" value="120"/>
		<attribute key="charges" value="3"/>
	</item>

and remove the "charges" tag.
SO this is what to remove:
<attribute key="charges" value="3"/>
 
Go to your items.xml and find something like this:

PHP:
	<item id="item_id_of_manarune" article="a" name="manarune">
		<attribute key="runeSpellName" value="a spell"/>
		<attribute key="weight" value="120"/>
		<attribute key="charges" value="3"/>
	</item>

and remove the "charges" tag.
SO this is what to remove:
<attribute key="charges" value="3"/>

Well there is not <attribute key="charges" value="3"/> there is just
<item id="2299" article="a" name="vip manarune">
<attribute key="weight" value="120"/>
</item>

Also wondering why I get alot of errors like
[27/02/2009 16:03:49] Duplicate uniqueId 2493

I also want to know how you can do so you wont lose any items if you have VIPaol on pvp enfo. Thanks for all the help!
 
Duplicate unique ids are at the map I believe.

Okey okey, do you know why I get this error message when I try to talk to the npc Demon Oak Monk
[27/02/2009 16:30:56] Lua Script Error: [Npc interface]
[27/02/2009 16:30:56] data/npc/scripts/demon oak monk.lua:eek:nCreatureSay

[27/02/2009 16:30:56] data/npc/scripts/demon oak monk.lua:43: attempt to compare nil with number
[27/02/2009 16:30:56] stack traceback:
[27/02/2009 16:30:56] data/npc/scripts/demon oak monk.lua:43: in function <data/npc/scripts/demon oak monk.lua:33>
 
Take a look at line 43 in your demon oak monk.lua script, it is comparing something with something which has a null (nothing) value.
 
Take a look at line 43 in your demon oak monk.lua script, it is comparing something with something which has a null (nothing) value.

Line 43
if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then

Btw did you know how to make the vipaol to work even if its pvp enforced?

EDIT: How can I make it able to use experience scroll more than one time? =)
 
Last edited:
Why do I get this bug also when I try to talk to the Promotion guy
[27/02/2009 17:02:08] Lua Script Error: [Npc interface]
[27/02/2009 17:02:08] data/npc/scripts/promotion.lua:eek:nCreatureSay

[27/02/2009 17:02:08] data/npc/lib/npcsystem/modules.lua:79: attempt to call global 'getPlayerPromotionLevel' (a nil value)
[27/02/2009 17:02:08] stack traceback:
[27/02/2009 17:02:08] data/npc/lib/npcsystem/modules.lua:79: in function 'callback'
[27/02/2009 17:02:08] data/npc/lib/npcsystem/keywordhandler.lua:40: in function 'processMessage'
[27/02/2009 17:02:08] data/npc/lib/npcsystem/keywordhandler.lua:168: in function 'processNodeMessage'
[27/02/2009 17:02:08] data/npc/lib/npcsystem/keywordhandler.lua:122: in function 'processMessage'
[27/02/2009 17:02:08] data/npc/lib/npcsystem/npchandler.lua:371: in function 'onCreatureSay'
[27/02/2009 17:02:08] data/npc/scripts/promotion.lua:7: in function <data/npc/scripts/promotion.lua:7>

And why do I get this problem when I talk to Demon Oak Info
[27/02/2009 17:03:31] Lua Script Error: [Npc interface]
[27/02/2009 17:03:31] data/npc/scripts/oak info.lua:eek:nCreatureSay

[27/02/2009 17:03:31] data/npc/scripts/oak info.lua:36: attempt to compare nil with number
[27/02/2009 17:03:31] stack traceback:
[27/02/2009 17:03:31] data/npc/scripts/oak info.lua:36: in function <data/npc/scripts/oak info.lua:33>
 
About the promotion guy, you're using the version for TFS 0.3 on TFS 0.2

Just replace the script with the original one.
 
About the promotion guy, you're using the version for TFS 0.3 on TFS 0.2

Just replace the script with the original one.

Okey thanks!

I got another problem now with the acc page when I try to install it (geisor acc) I get this error message
Warning: Error parsing C:/Documents and Settings/----/----/Pureot/config.lua on line 42 in C:\xampp\htdocs\install.php on line 183
Database error. Unknown database type in C:/Documents and Settings/----/----/Pureot/config.lua . Must be equal to: "mysql" or "sqlite". Now is: ""
 
Make sure the "server_path" in file "C:\xampp\htdocs\config\config.ini" is correct.

Here's an example of my setup of "server_path" in that file:
server_path = "C:/Documents and Settings/Administrator/Desktop/rookOT/"
 
Make sure the "server_path" in file "C:\xampp\htdocs\config\config.ini" is correct.

Here's an example of my setup of "server_path" in that file:
server_path = "C:/Documents and Settings/Administrator/Desktop/rookOT/"

Fixed, but the promotion guy doesn't work even after I changed promotion script.

Took the script from tfs 0.2 mystic spirit.
 
Back
Top Bottom