Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
Hello, I'm trying to check if an item can be use on slots 1, 4, 7, 8, 12 (Head, Armor, Legs, Feet or Hands)
Enums on src looks like this...
enum slots_t : uint8_t {
CONST_SLOT_WHEREEVER = 0,
CONST_SLOT_HEAD = 1,
CONST_SLOT_NECKLACE = 2,
CONST_SLOT_BACKPACK = 3...
the idea is to get half hp by diving it by 2, but it was getting the actual health, not max
try this one
-- FIRST SPELL TO CAST --
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)...
the "onCastSpell" function can be as simple as this...
function onCastSpell(creature, variant)
if creature:getHealth() <= math.floor(creature:getHealth() / 2) then
return combat2:execute(creature, variant)
else
return combat:execute(creature, variant)
end
end
alright let me explain your "problem" so you can keep your own script...
by using
local quiver = creature:getItemById(13260)
you're getting any item (not only equiped one) to add your arrow
you should get the equiped quiver using
creature:getSlotItem(CONST_SLOT_AMMO)
and then compare the id...
I quickly edited your script to make it work like you want, I didn't test it, so tell me if you find any problems...
you can edit lines 11 and 19 to make whatever you want
local quivers = {
[13260] = {amount=15},
[13262] = {amount=20},
[13259] = {amount=30}
}
function...
I'm currently using TFS 1.5 downgraded to 8.6, I'm trying to create a creature that pulls the player target to make it attack itself. I created a simple spell that changes the target using setTarget, and it works, but the "red square" that indicates who the player is attacking isn't updating...
I'm also interested in this, looks like you can already swap items if they're inside your backpack, it will probably need to edit sources, it might be something related to cylinders, but I've no idea how to fix
my distro is pretty close to the github one, I started to edit a few weeks ago, and just made some core adjustments and added a few items atm, no events besides the one that comes with the server.
Could it be that server is losing connection to the database somehow cause of windows? maybe...
I'm hosting it on windows 10 64bits, pretty good machine with plenty of resources available, my server crashes 0-3 times a day without errors on console... the server saves before closing which means that isnt a critical failure.
I tried to use visual studio to check whats happening, but didn't...
I recently migrated from 0.4 to 1.5 (Nekiro downgrade), and I'm having some problems trying to make spells and weapons that apply damage conditions.
Tried the following methods:
combat:addCondition(condition)
Creature:addDamageCondition(target, type, list, damage, period, rounds)
also tried to...