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!
I manage to make it work using this
combat:execute(cid, {["type"] = 1, ["number"] = alt_targets[i].uid})
But this probably isn't the best way to make this, does anyone know how to get this kind of information from "Creature" userdata?
Have you tried editing one of the buffing spells already present? I did a quick editing, try this...
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local condition =...
I was playing around with some spells, trying to do some combat on multi creatures...
function onCastSpell(cid, var)
alt_targets = Game.getSpectators(Creature(var.number):getPosition(), false, false, 1, 2, 1, 2) --minRangeX, maxRangeX, minRangeY, maxRangeY
for i=1,#alt_targets do...
If anyone wants, here is how I solved the problem...
spells.cpp
for (auto vocationNode : node.children()) {
if (!(attr = vocationNode.attribute("name"))) {
continue;
}
int32_t vocationId = g_vocations.getVocationId(attr.as_string());
if (vocationId...
I've tried only on spells tbh, and it didn't work i've made some adjustments, but now it is now showing properly weapon descriptions
spells.cpp
int32_t vocationId = g_vocations.getVocationId(attr.as_string());
to
int32_t vocationId = attr.as_int();
weapons.cpp
int32_t vocationId =...
I'm actually using tfs 1.5 downgraded to 8.6, but in movements, spells and weapons, it is using
<vocation name="vocation"/> instead of <vocation id="2"/> like it was used on tfs 0.4.
Is it possible to change it in sources to use ID instead of name? couldn't find anything, can someone help?
I'm coming from a 8.6 server with account manager and sqlite, my server is running, but I can't login because I can't create any account...
Is there any way to enable account manager? my website just show this error... I'm looking for hours trying to fix it
I'm using this to make a poison skill
local condition = createConditionObject(CONDITION_POISON)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
setConditionParam(condition, CONDITION_PARAM_FORCEUPDATE, true)
addDamageCondition(condition, 5, 1000, -400)
The problem is that when a player...
i needed to remove ) at the end of each line, compiled but didn't work, i can attack players with exact the same outfit, no errors on console and no critical errors on client
@EDIT
it is working but only if players change for same outfit, when i set player temporary outfits it doesnt work, but...
i know there is a option that you cannot damage same feet, but i would like block attack only if the whole outfit is the same, can someone edit the sources for me?
if((attackerPlayer = attacker->getPlayer()) || (attackerPlayer = attacker->getPlayerMaster()))
{
checkZones =...
its called "group_id", but group 1 is access 0 and group 6 is access 5 so it would hide group 4 or more, could you do it for me? i know nothing about sql
Currently highscores on my server is working as it should, but it shows every player skill including god and gms characters, how can i hide characters with access 3 or more from appearing on highscores? here is what i found on sources:
Highscore Game::getHighscore(uint16_t skill)
{...
magic wall is considered a agressive move, so you cannot use it when server is no-pvp
try adding:combat:setParameter(COMBAT_PARAM_AGGRESSIVE, FALSE)
and see if it works