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

Search results

  1. Elgenady

    [c++]Skill Fishing to Energy Defence Skill TFS 04

    do u have 2 combatChangeHealth function?
  2. Elgenady

    [c++]Skill Fishing to Energy Defence Skill TFS 04

    what source u use?
  3. Elgenady

    [c++]Skill Fishing to Energy Defence Skill TFS 04

    maybe this will work like you want {idk} its work if player have 1 fishing skill will block 1% from energy damage if(target && target->getPlayer()) { int32_t reductPercent = target->getPlayer()->getSkill(SKILL_FISH, SKILL_LEVEL); if(reductPercent > 0 &&...
  4. Elgenady

    [c++]Skill Fishing to Energy Defence Skill TFS 04

    more explain please do u need magic energy shield work with fishing system??
  5. Elgenady

    [c++]Skill Fishing to Energy Defence Skill TFS 04

    you can use some thing like this https://otland.net/threads/block-reduce-damage-on-lua.267558/post-2584220
  6. Elgenady

    C++ attribute for sword etc.

    here all you want https://otland.net/threads/weapon-all-kinds-of-weapons.163440/
  7. Elgenady

    TFS 1.X+ [MOVEMENTS] New Players can't access

    2 scripts don't work ? try this local STORAGE = 8089 function onStepIn(cid, item, position, fromPosition) local cur = math.max(getCreatureStorage(cid,STORAGE) - os.time(), 0) if getPlayerStorageValue(cid, 8092) > 1 then local days = math.floor(cur / (60 * 60 * 24)) cur = cur - days * 60 * 60 *...
  8. Elgenady

    TFS 1.X+ [MOVEMENTS] New Players can't access

    try this one local STORAGE = 8092 function onStepIn(cid, item, position, fromPosition) local cur = math.max(getCreatureStorage(cid,STORAGE) - os.time(), 0) if cur > 1 then local days = math.floor(cur / (60 * 60 * 24)) cur = cur - days * 60 * 60 * 24 local hours = math.floor(cur / (60 * 60)) cur...
  9. Elgenady

    TFS 0.X Show total armor, defense and attack

    u can use this functions function getDef(cid) local defense = 0 for i = CONST_SLOT_RIGHT,CONST_SLOT_LEFT do if getPlayerSlotItem(cid, i).uid > 0 then if getItemInfo(getPlayerSlotItem(cid,i).itemid).defense then defense = defense +...
  10. Elgenady

    Lua [TFS 0.3.6] - Dungeon TP & Reward Chest - How to do?

    this script work with me fine with my table
  11. Elgenady

    Lua [TFS 0.3.6] - Dungeon TP & Reward Chest - How to do?

    you sure u killed rats in this area? if isInRange(getPlayerPosition(cid), {x = 1099, y = 1008, z = 7}, {x = 1169, y = 1091, z = 7}) then ???
  12. Elgenady

    Lua [TFS 0.3.6] - Dungeon TP & Reward Chest - How to do?

    u sure u register in login and reload creaturescript?? and player relog
  13. Elgenady

    Lua [TFS 0.3.6] - Dungeon TP & Reward Chest - How to do?

    try this one local config = { {["name"] = "Rat", ["storage"] = 1, ["count"] = 4, }, -- monster name for dung number 1 {["name"] = "bat", ["storage"] = 1, ["count"] = 10}, -- monster name for dung number 2 }...
  14. Elgenady

    Lua [TFS 0.3.6] - Dungeon TP & Reward Chest - How to do?

    creaturescript for count monster kill and change name to Rat you have to register in login and globalevent will work after 15 min player enter dung and i change interval="1000" to interval="1"
  15. Elgenady

    Lua [TFS 0.3.6] - Dungeon TP & Reward Chest - How to do?

    that for solo dung if you want dung for party i can edit for you but test it first creaturescripts.xml this script for count dung monster <event type="kill" name="dungsystem" event="script" value="dung.lua"/> in login.lua add registerCreatureEvent(cid, "dungsystem") dung.lua local config = {...
  16. Elgenady

    TFS 0.X How/where to add "onMove" to TFS 0.4? (Anti house trash)

    show ur creatureevent.cpp
  17. Elgenady

    C++ Where is the error here? o.O

    change getWeapon(false) to getWeapon(true)
  18. Elgenady

    TFS 0.X Block moveItem fromContainer to ground if player has storage

    maybe this help you movements.xml <movevent type="AddItem" tileitem="1" actionid="xxxxx" event="script" value="bpantitrash.lua"/> lua function onAddItem(moveItem, tileItem, position, cid) local blockeditem = {2591, 2589, 2590, 2592} if table.contains(blockeditem,moveItem.itemid) then...
Back
Top