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

[Help] I Give Rep if you Fix Small Server Bug

Leo32

Getting back into it...
Joined
Sep 21, 2007
Messages
987
Solutions
14
Reaction score
532
I get random errors when i start my server (TFS).
All npc errors.

Sometimes i get them, and sometimes i dont get any. its really wierd.



PHP:
Lua Script Error: Warning: [NpcScript::NpcScript] Can not load script. [data/npc/scripts/seller.luaNPC interface 
] 

data/npc/scripts/distance.lua:onThink 
Warning: [NpcScript::NpcScript] Can not load script. data/npc/scripts/furniture.lua 

Stack size changed!

Sometimes i get those errors. And sometimes it just debugs after map loads. and sometimes it doesnt bug at all. it works perfect.

HELP!
 
Oh and also.

how do i make it. so that spears are infinite. and ammunition isnt.

I tried opening weapons.xml and went to spears. and delete "removeammochance" or something. but that just made my spears break after i throw them once. >.>
 
Well since spears dont get on the ground you can make them unbrake able

Goto items.xml

Push CTRL+f you will get an search function type in the search function "Spears" u will see this.

Code:
	<item id="2389" article="a" name="spear" plural="spears">
		<attribute key="weight" value="2000"/>
		<attribute key="attack" value="25"/>
		<attribute key="weaponType" value="distance"/>
		<attribute key="shootType" value="spear"/>
		<attribute key="range" value="5"/>
		<attribute key="breakChance" value="10"/>
	</item>

change:
Code:
<attribute key="breakChance" value="10"/>
to
Code:
<attribute key="breakChance" value="10000000"/>
 
Woo, thanks.

i didnt realise it had breakchance in items.xml.
Im not a completely stupid scripter :)

Edit: Umm, there is no breakchance in items.xml
Im using TFS 0.2.4 Btw

and what about the errors i get?
I only get them sometimes.
How is that possible?
Arnt computers predicable? it either works. or it doesnt?

HELP!

P.S How do i give rep. Hauahuahuaa
 
Last edited:
Woo, thanks.

i didnt realise it had breakchance in items.xml.
Im not a completely stupid scripter :)

Edit: Umm, there is no breakchance in items.xml
Im using TFS 0.2.4 Btw

and what about the errors i get?
I only get them sometimes.
How is that possible?
Arnt computers predicable? it either works. or it doesnt?

HELP!

P.S How do i give rep. Hauahuahuaa

Post your distance.lua here

I dont need rep :p since your post count is to low your rep wont count :p
 
Why my distance.lua?

PHP:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)		npcHandler:onCreatureAppear(cid)		end
function onCreatureDisappear(cid)	npcHandler:onCreatureDisappear(cid)		end
function onCreatureSay(cid, type, msg)	npcHandler:onCreatureSay(cid, type, msg)	end
function onThink()			npcHandler:onThink()				end

npcHandler:addModule(FocusModule:new())
 
<distance id="2389" hitchance="80" ammo="removecountchance" function="internalLoadWeapon"/>

Can i edit that in anyway to make spears infinite?

___________________________________________________________________________
Unrelated:

Why the hell cant i put in an Avatar? -.-
 
<distance id="2389" hitchance="80" ammo="removecountchance" function="internalLoadWeapon"/>

Can i edit that in anyway to make spears infinite?

___________________________________________________________________________
Unrelated:

Why the hell cant i put in an Avatar? -.-


hmm i'v never done this before but not sure

anywais post your distance.xml
 
Omg There Is No Distance.xml!

Moker have u been eating magic mushrooms? there is no such thing as distance.xml on any servers Lolol
 
Last edited by a moderator:
Omg There Is No Distance.xml!

-.-"the npc that uses distance.lua..


anywais these days spears dont drop on the ground anymore right?? just make the breakchange freaking high and you are don ethe are "infinate"
 
Last edited:
in data/npcs you need to find the NPC Selling the Spears i think Mokerhamer means

also i think you need to cchange the breakchance to a low number for it to break less.

no it's the break change 1 = u throw 1 time an it breaks, how higher it is how more u need to throw this it's broking
 
Yes BUT

There is no break chance anywhere. items.xml doesnt have it

weapons.xml just has removecountchance

and the chance is automatic.

@Jonny

Who cares if someone double posts? Whats wrong with that? The Double Post Serial Killer might come and hunt me?
 
Yes BUT

There is no break chance anywhere. items.xml doesnt have it

weapons.xml just has removecountchance

and the chance is automatic.

@Jonny

Who cares if someone double posts? Whats wrong with that? The Double Post Serial Killer might come and hunt me?


Well since spears dont get on the ground you can make them unbrake able

Goto items.xml

Push CTRL+f you will get an search function type in the search function "Spears" u will see this.

Code:
	<item id="2389" article="a" name="spear" plural="spears">
		<attribute key="weight" value="2000"/>
		<attribute key="attack" value="25"/>
		<attribute key="weaponType" value="distance"/>
		<attribute key="shootType" value="spear"/>
		<attribute key="range" value="5"/>
		<attribute key="breakChance" value="10"/>
	</item>

change:
Code:
<attribute key="breakChance" value="10"/>
to
Code:
<attribute key="breakChance" value="10000000"/>


last way i can help you..
 
OMG I TOLD YOU

PHP:
<item id="2389" article="a" name="spear" plural="spears">
		<attribute key="weight" value="2000"/>
		<attribute key="attack" value="25"/>
		<attribute key="weaponType" value="distance"/>
		<attribute key="shootType" value="spear"/>
		<attribute key="range" value="5"/>
	</item>

Thats what mine has. it doesnt have breakchance. if i added <attribute key="breakChance" value="10000000"/>

in there. would it work? or would i get an error?

AND

Look at my first post. the spear thing was my second problem. look at my first problem!!
 
OMG I TOLD YOU

PHP:
<item id="2389" article="a" name="spear" plural="spears">
		<attribute key="weight" value="2000"/>
		<attribute key="attack" value="25"/>
		<attribute key="weaponType" value="distance"/>
		<attribute key="shootType" value="spear"/>
		<attribute key="range" value="5"/>
	</item>

Thats what mine has. it doesnt have breakchance. if i added <attribute key="breakChance" value="10000000"/>

in there. would it work? or would i get an error?

AND

Look at my first post. the spear thing was my second problem. look at my first problem!!

It would work on version 0.2.5
 
Back
Top