• 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 3 questions about scripts [rep++]

Gothric

New Member
Joined
Feb 6, 2010
Messages
264
Reaction score
1
1.What function should i use in lua to absorb percent death?:S ( in addon bonus system)

i tried this but doesnt work

PHP:
setConditionParam(norse, CONDITION_PARAM_ABSORB_PERCENT_DEATH, 50)


2. What function should i use for check that item is stepable :d

i have script on appearing items in random place on the map but i dont want to appear item on wall for example or on tree --.--

i tried this! but it doesnt work too :/
PHP:
 if queryTileAddThing(place, cur) ~= 1 or getTilePzInfo(cur) or getTileHouseInfo(cur) then


3.What function should i use for be invisible like a ghost :D not like utana vid but like a /ghost command for god/gm :) i want create item with that function but i dont know what to write :S
 
damn NOOBS!!! i cant fix it in outfits.xml -.- there are only outfits i want to work it on addons !! There must be the way to do it in lua -.- addon bonus is really famous so how they fix it?? like vexoria.net?
 
You can also create outfit bonus system through outfits.xml, more powerfull and without useless scripts.
 
Lol ;|
example
LUA:
	<outfit id="1">
		<list gender="0" lookType="136" name="Citizen">
				<stats maxHealth="50"/>
				<stats precentDeath="50"/>
	</list>
		<list gender="1" lookType="128" name="Citizen">
				<stats maxHealth="50"/>
                               <stats precentDeath="50"/>
	</list>
Try add it to outfits.xml and it will be working only if you have full addon
 
No, I'm talking about outfits.xml, you can do it in this way:
Code:
<absorb percentDeath="xxx" />


Lol ;|
example
LUA:
	<outfit id="1">
		<list gender="0" lookType="136" name="Citizen">
				<stats maxHealth="50"/>
				<stats precentDeath="50"/>
	</list>
		<list gender="1" lookType="128" name="Citizen">
				<stats maxHealth="50"/>
                               <stats precentDeath="50"/>
	</list>
Try add it to outfits.xml and it will be working only if you have full addon


Stats is only for statistics like health mana etc, for absorb you have to use <absorb> tag.
 
omg try to undertand that i want addon bonus not outfit bonus... everyone have outfits but not everyone have addons :S it must be addons on 100%!!!
 
omg try to undertand that i want addon bonus not outfit bonus... everyone have outfits but not everyone have addons :S it must be addons on 100%!!!

Built-in outfits.xml bonus system works only if you have both addons, isn't it what you want? :) (It's done in same way @ vexoria.net, because was me who made it.)
 
lol -.- @thread my first post


1.What function should i use in lua to absorb percent death?:S ( in addon bonus system)

i tried this but doesnt work

PHP:
setConditionParam(norse, CONDITION_PARAM_ABSORB_PERCENT_DEATH, 50)


2. What function should i use for check that item is stepable :d

i have script on appearing items in random place on the map but i dont want to appear item on wall for example or on tree --.--

i tried this! but it doesnt work too :/
PHP:
 if queryTileAddThing(place, cur) ~= 1 or getTilePzInfo(cur) or getTileHouseInfo(cur) then


3.What function should i use for be invisible like a ghost :D not like utana vid but like a /ghost command for god/gm :) i want create item with that function but i dont know what to write :S
 
Back
Top