• 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. kubernik

    Looking for Ninja Spell

    Ok
  2. kubernik

    Looking for Ninja Spell

    You have to convert this script form 1.x to 0.3.6 creature:getPosition To getCreaturePosition(cid) function onCastSpell(creature, var) To function onCastSpell(cid, var) Etc...
  3. kubernik

    C++ doubt c++ function tfs 1.2

    If Item is pickuable then return 15 else 2
  4. kubernik

    Get oldlevel and newlevel like onAdvance with onDeath?

    tfs 0.4 onDeath(cid, corpse, deathList) tfs 1.3 onDeath(creature, corpse, lasthitkiller, mostdamagekiller, lasthitunjustified, mostdamageunjustified)
  5. kubernik

    Get oldlevel and newlevel like onAdvance with onDeath?

    Hm.. you can just storage oldLevel and newlevel function onAdvance(cid, skill, oldlevel, newlevel) if (skill == SKILL__LEVEL) then setPlayerStorageValue(cid, 1000, oldLevel) setPlayerStorageValue(cid, 1001, newLevel) end return true end
  6. kubernik

    How to change manaGain and healthGain during game

    Vocation.xml
  7. kubernik

    C++ Saga system

    No, this function is useless for this. Problem is here: Monster::isOpponent This is not dynamic function, when monster see player and storage != sagaNumber then opponent return false, when player change storage, monster didn't see it. You have add refresh when you change/add/set storage to...
  8. kubernik

    C++ Saga system

    error: expected ')' Here: sagaNumber() This have to look like this: (isSagaMonster() && creature->getStorage(8000, value) == sagaNumber())
  9. kubernik

    C++ Saga system

    You have everything in log. sagaNumber To sagaNumber()
  10. kubernik

    C++ Saga system

    But why you use again creature->isSagaMonster() XD bool Monster::isTarget(Creature* creature) { std::string value = "1"; if(isSagaMonster()){ return (!creature->isRemoved() && creature->isAttackable() && (isSagaMonster() && creature->getStorage(8000, value) == sagaNumber) &&...
  11. kubernik

    C++ Saga system

    Try: creature->getStorage(8000, sagaNumber) or std::string value = "1"; creature->getStorage(8000, value) == sagaNumber (Yolo) if it display same error.. show that lanes xd
  12. kubernik

    C++ Saga system

    Without creature-> it is correct. You probalby have error here: getStorage(8000, sagaNumber) Ym.. what tfs are you using?
  13. kubernik

    C++ Saga system

    "creature->isSagaMonster" Just remove "creature->" Same with sagaNumber Xd
  14. kubernik

    Auto 1 attack target and combo leader prevention

    1.You are not looking for "Auto 1 attack target", but for "Auto 1 isnotattacking attack target". I can tell you right now, that this is NOT possible. You can only change packet for attack in client(by dll)and server(?) side, but with this elfbot should be useless, bot without targeting? Uhuhu...
  15. kubernik

    C++ Problem with getField

    Hello, i have problem with rewrite function from tfs 0.3.6 to tfs 1.3(downgraded to 8.6) Function from 0.3.6: int32_t LuaInterface::luaSendChannels(lua_State* L) { ScriptEnviroment* env = getEnv(); if(!lua_istable(L, -1)) { errorEx("channel list is not a table.")...
  16. kubernik

    Feature Elfbot auto attack prevention

    I posted anty braindead elfbot in lua, not 100% protection, i think that it is not possibile, without change packet in client and server side. Your script is the same like this: auto 100 isnotattacking attack target But, little longer. isnotattacking - if you have target, elfbot do nothing. If...
  17. kubernik

    Feature Elfbot auto attack prevention

    Hello, i think that it is not usefull, because this protect only before braindead elfbot user. Your code simply checks when the target was selected.. if to much then block. Simple workaround is it: auto 100 isnotattacking attack target ElfBot send packet to target so.. with that code in...
  18. kubernik

    TFS 0.X is it possible to make an npc answer just one person at a time?

    Use global storage. If npc answer to first player then storage set to 1. If 1 then return false or dialog that npc is bussy for second player. If npc end talking with first player set global storage to 0
  19. kubernik

    TFS 0.X [Solved]Storage overflow?

    @Xikini I'm testing storage with INT for 5 hours and i dont get any bug info... earlier i got info within 5-10 minutes so i'm think that is working fine. Well, you were right. :) Thanks for help!
  20. kubernik

    TFS 0.X [Solved]Storage overflow?

    @Xikini First, Thanks for reason :) Yes, this should help, but this probably ONLY prevent to display that string: `ç$·˙ and when occurs (?overflow?) in storage that should look like this: count from 1 to 4 AND... 4 -1 `ç$·˙ -> 0 `ç$·˙ -> 0 `ç$·˙ -> 0 `ç$·˙ -> 0 because INT in database convert...
Back
Top