• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. knightxd

    Compiling add total damage on function onkill (rev 0.4)

    well i'm trying to add total damage to function on kill... to work like this.. //onKill(cid, target, damage, flags, total) but here is the thing, total returns aways "20" idk why... uint32_t CreatureEvent::executeKill(Creature* creature, Creature* target, const DeathEntry& entry) {...
  2. knightxd

    Happy Birthday _Arthur!

    HB arthur! :D
  3. knightxd

    Why its return boolen value ??

    just change i to 7 so.. or for i = 7,1 do
  4. knightxd

    Why its return boolen value ??

    srry.. cause attacker dont get ) i = 5 while i>0 do win_skill[i] = getPlayerSkill(attacker, i).itemid <--- Return boolen value why ? loss_skill[i] = getPlayerSkill(cid, i).itemid i = i-1 end also you can do it.. for i = 5,1 do win_skill[i] = getPlayerSkill(attacker, i).itemid...
  5. knightxd

    Feature Creatureevent OnGainExp

    @up k.. i'll take a look and add a tag for summons :D .. creature.cpp void Creature::onGainSharedExperience(double& gainExp, Creature* target, bool multiplied) change into void Creature::onGainSharedExperience(double& gainExp, Creature* target, bool multiplied) { if(gainExp <= 0) return...
  6. knightxd

    [LUA] GetCID(guid)

    i know but i can't load guid on my queue function :p thats why i made it
  7. knightxd

    [LUA] GetCID(guid)

    function GetCID(guid) for i, cid in ipairs(getPlayersOnline()) do if getPlayerGUID(cid) == guid then return cid end end return false end if player with that guid is online returns cid.. else returns false.. if you can't find a use for it, just dont get..
  8. knightxd

    If i death i dont loss eq and god tp me to temple ;)

    function onStatsChange(cid, attacker, type, combat, value) if getCreatureHealth(cid)-value <= 0 then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doSendMagicEffect(getCreaturePosition(cid), 10) doRemoveConditions(cid)...
  9. knightxd

    Simple rune script troubles.

    function onGetFormulaValues(cid, level, maglevel) min = 800 max = 1000 return min, max end --.. heals from 800 to 1k
  10. knightxd

    If i death i dont loss eq and god tp me to temple ;)

    well.. function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) and isMonster(mostDamageKiller) then doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid)) doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid))...
  11. knightxd

    Windows Dead Body missing! HELP pls

    well maybe you're with hardcore pvp set on your config.lua or you're setting skull none at a script... if you want to enable skulls first check at config.lua the world if its set to "open" if it is, check all your functions "onattack, oncombat"
  12. knightxd

    Windows Dead Body missing! HELP pls

    try this one.. local config = { deathListEnabled = getBooleanFromString(getConfigInfo('deathListEnabled')), sqlType = getConfigInfo('sqlType'), maxDeathRecords = getConfigInfo('maxDeathRecords') } config.sqlType = config.sqlType == "sqlite" and DATABASE_ENGINE_SQLITE or...
  13. knightxd

    Windows Dead Body missing! HELP pls

    you don't got it... it started happening after sum. you did, i just wanna know if you realise what? or if the server came like this.. if it came like this, post all your scripts that envolves "ondeath and onpreparedeath" ps also mods..
  14. knightxd

    Windows Dead Body missing! HELP pls

    this starts happening after what? have you ever edited it source?
Back
Top