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

action

The position is the position of the item with ID 6119 (scroll), I assume this is not the position of the lever, so use frompos/topos.
 
For the lever pos you can just use frompos or topos.
With what exactly do you still need help with from the things you posted?
 
I need to know how do I use getTileItemById that you said with the addEvent I am unable to make the switch and the id that 1512 to 1513 giving lvl damage * 3
 
For damage you can use doTargetCombatHealth.
Code:
doTargetCombatHealth(0, cid, COMBAT_PHYSICALDAMAGE, -50, -100, CONST_ME_NONE)
The getTileItemById to get the uid in the function in addEvent was correct, you just needed to use the position of the lever.
 
You can do it like this if you want it to be based on level.
Code:
local level = getPlayerLevel(cid)
local min, max = level * 3, level * 3.3

doTargetCombatHealth (0, cid, COMBAT_PHYSICALDAMAGE, -min, -max, CONST_ME_NONE)
 
Limos, everything is ok thank you very much but have a problem if I have the post that has thorns is all right only if I get out of hand whatever and pull the error lever is why not put the stackpos now do not know what I put why the player has off sqm is a stackpos but with it on is another stackpos
 
Back
Top