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

    [8.6 OTServ 0.6.4] Capacity doesn't update correctly on "conjureItem" spells.

    Distro: [8.6] OTServ 0.6.4 STABLE (OTServ 0.6.4) Datapack: Uploadfiles.io - data.rar (Essentially the same Datapack you get from the distro, just a few minor tweaks) I should also mention that the count you can read in "Spells.xml" for ammo is not what I used in the pictures. I put 100 as a...
  2. Demnish

    Pure 7.4 Datapack

    I can't download Avesta due to viruses and I can not find any Avesta Datapack to download. Does anyone sit on a "pure" 7.4 datapack? (By pure, I mean as close to real 7.4 as possible when it come to spells etc) Help would be much appreciated! King regards, Z.
  3. Demnish

    [8.6 OTServ 0.6.4] Capacity doesn't update correctly on "conjureItem" spells.

    So my problem is this, whenever I conjure items, the cap doesn't properly update until it's created a new stack. So by definition I have infinite cap due to this, Here are some images to put it into perspective: (The bug can be replicated at will) STEP 1 (399 cap, 75 bolts) STEP 2 (399 cap...
  4. Demnish

    Lua [8.6 OTServ 0.6.4] (SOLVED) Need help with simple quest.

    Thank you, it worked! However, I couldn't find "getItemWeightById" in luascript.cpp? (Which is why I thought it didn't exist in my distro) Do you know where I can find all available functions?
  5. Demnish

    Lua [8.6 OTServ 0.6.4] (SOLVED) Need help with simple quest.

    This is the code that I wrote: local ITEM = 2195 local COUNT = 1 local DROPONGROUND = false local ITEMNAME = getItemName(ITEM) local STORAGE = getItemIdByName(ITEMNAME) local WEIGHT = getItemWeight(ITEM, COUNT) function onUse(cid, item, frompos, item2, topos) if getPlayerFreeCap(cid) >=...
  6. Demnish

    [8.6] OTServ 0.6.4 STABLE

    I've noticed that this distro doesn't have /clean or any real clean function. How hard would it be to add this through actions, globalevents or npcs, since I have a problem with my VC so I can't compile any sources.
  7. Demnish

    Solved 8.6 Mana Rune (Level based)

    function onCastSpell(cid, item, fromPosition, toPosition) local level = getPlayerLevel(cid) local mana = math.random(level, (level*2)) doPlayerAddMana(cid, mana) doSendAnimatedText(getPlayerPosition(cid), '+' .. mana, TEXTCOLOR_PURPLE)...
  8. Demnish

    Solved 8.6 Mana Rune (Level based)

    _SOLVED_ function onCastSpell(cid, item, fromPosition, toPosition) local level = getPlayerLevel(cid) local mana = math.random(level, (level*2)) doPlayerAddMana(cid, mana) doSendAnimatedText(getPlayerPosition(cid), '+' .. mana, TEXTCOLOR_PURPLE)...
  9. Demnish

    Lua [Spell] Polymorph Rune

    I get this in the console:
  10. Demnish

    Lua [Spell] Polymorph Rune

    Distro: OTServ 0.6.4 STABLE Client: 8.6 Console error: Script: polymorph.lua local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_POFF) local outfit = createConditionObject(CONDITION_OUTFIT) setConditionParam(outfit, CONDITION_PARAM_TICKS, 20000) local...
  11. Demnish

    [LUA] [8.6] Addon Doll

    Works flawlessly, I'll add it to my main post. Good job and thanks! :)
  12. Demnish

    [LUA] [8.6] Addon Doll

    Thanks for the tips, I will try to keep code clean in the future! Your code is indeed easier to read, change and understand. Anyway, I get this when using it while not having the addons: Feels like the same problem I had the first time I changed the one I use. I'll see if I can fix it! :)...
  13. Demnish

    [LUA] [8.6] Addon Doll

    Fixed it. Updated my main post with the working code. I'm kinda happy that all I had was "canPlayerWearOutfit(cid, looktype, addons)" from Xikini and I managed to fix it, I guess I took a step away from noob today. Now I'm going to try to add so that you can't get addons if you don't have the...
  14. Demnish

    [LUA] [8.6] Addon Doll

    Changed the code but couldn't get it to work. The added code is in line 8 and 17-19: function onSay(cid, words, param) local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["mage"]={138}, ["knight"]={139}, ["nobleman"]={140}, ["summoner"]={141}, ["warrior"]={142}...
  15. Demnish

    [LUA] [8.6] Addon Doll

    SOLVED & FINISHED Please move this to Resources/Talkactions. Distro: OTServ 0.6.4 STABLE Client: 8.6 What?: Improved Addon Doll (Talkaction) Made by Xeraphus. How To Use?: !addon <name of the outfit> Scripts: addon.lua (..\<your distro>\data\talkactions\scripts\custom) local ADDON_DOLL =...
  16. Demnish

    Solved Helmet of the Ancients

    Now it assembles! :) Though, "doRemoveItem(cid, ANCIENT_GEM, 1)" does not seem to work. It duplicates the ANCIENT_GEM and I get the console error: :p EDIT: I seem to have fixed it, instead of using "doRemoveItem(cid, ANCIENT_GEM, 1)", I used "doPlayerRemoveItem(cid, ANCIENT_GEM, 1)". Thanks...
  17. Demnish

    Solved Helmet of the Ancients

    Haha yeah I noticed it, change it to "count" but didn't matter. Anyway, I see now that I forgot all about the "item.itemid" o_O I tried the script, I can disassemble the helmet, but not assemble it. Doesn't show any errors in the console either. TD;LR: the second part of the script works, but...
  18. Demnish

    Solved Helmet of the Ancients

    SOLVED: Thanks to Xeraphus for his expertise. This is the working hota.lua local HOTA_FINISHED = 2343 local HOTA_UNFINISHED = 2342 local ANCIENT_GEM = 2363 function onUse(cid, item, fromPosition, itemEx, toPosition) if(getPlayerFlagValue(cid, PLAYERFLAG_CANNOTPICKUPITEM)) then...
  19. Demnish

    Solved [8.6] Change Gold

    It didn't exist so I added it, thanks alot! :)
  20. Demnish

    Solved [8.6] Change Gold

    SOLVED: ITEMCOUNT_MAX didn't exist in global.lua, all I had to do was to define it. Thanks to Colandus for pointing it out. Distro: OTServ 0.6.4 STABLE Problem: When I use 1 coin, it disappears. When I use 100 coins, nothing happens. No errors in console. Scripts: changegold.lua local coins...
Back
Top