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

Lua Get item shoot range? PLEASE.

Narzerus

Full-stack developer and old OT Developer
Joined
Oct 29, 2007
Messages
202
Reaction score
11
I've been struggling for a week now developing my equipment improvement system, and had to limit it ALOT.

There is just no way on tfs 3.6 pl1 (Lua scripts) to:
-get a weapons shoot range
-set a weapon extra skill
-change weapon's weight

and sooo on, many stuff preety much unfinished and it's preety much screwing the balances I had made for this sistem to work perfectly..

Any information (specially on GETTING a weapon's shoot range) will be extremely appreciated at the point of giving that person a free blowjob

Thanks peopel.
 
1. getItemInfo(itemid).shootRange ?
2. doItemSetAttribute(uid, 'skillDist', n) ?
3. doItemSetAttribute(uid, 'weight', n) ?
 
I don't know if you meant what Cykotitan said or what I'm about to say.

To set the range of a weapon, go in your items.xml folder and just add

<attribute key="range" value="x" />

To set the weight:

<attribute key="weight" value="x" />

I don't know how to do the extraskill thing, but i know how to add extraAttack or extraDef:

<attribute key="extradef" value="x" />
<attribute key="extraattack" value="x" /> Not sure about this one.

Well just put the values you want in the "x"es
Sorry if I misunderstood and you wanted to another thing..
 
Well none of both we're right actually, I meant to GET those values in a LUA script not xml, thanks anyways.

Anyone else??

@Cykotitan I tried getItemInfo and it didn'twork, did it work for you?
 
I hate that weird TFS 3.4 bug that makes movements onEquip Execute twice goddammit!
 
Back
Top Bottom