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

    getMoney/addMoney/removeMoney issue with max value

    I do have 5 coins. TFS0.3.6. <item id="12416" article="a" name="cent" plural="cents"> <attribute key="description" value="One hundred of these can be converted in a dollar." /> <attribute key="duration" value="5" /> <attribute key="worth" value="1" /> </item> <item...
  2. B

    Transparency on Magic Effects/Outfits?

    I do know theres a way to set opacity to Items (tile items, etc) on OTClient, but idk how to edit it so I can set it to monsters and effects (and if it has to be made before compiling)
  3. B

    Transparency on Magic Effects/Outfits?

    I think it should be distro-client. But I want to set opacity for monsters and magic effects, on OTClient, depending on a storage, name, function param, something. Like doSendMagicEffect(pos, effect, player, opacity) if getPlayerStorageValue(cid, STR_TRANSPARENCY) then...
  4. B

    getMoney/addMoney/removeMoney issue with max value

    Hello guys, can anyone help me with editing max money a player can have? I believe its currently capped at 2 billion (maybe cause its uint32), I tried changing to uint64 but failed to compile. :( Here's my game.cpp ~ uint32_t Game::getMoney(const Cylinder* cylinder) { if(!cylinder)...
  5. B

    Transparency on Magic Effects/Outfits?

    Hello guys! Does anyone knows how to put transparency on magic effects? (Is it Client, Distro or both?) Also, is there a way to change transparency of an outfit when something spawns? Maybe by a storage value, name or some info. Like: if name == "Ghost Demon" then setOpactiy(cid, 0.6) end Thank...
  6. B

    TFS 0.X How to add temporally a item atribute

    I don't know if onLook and getItemInfo are avaiable in all distros, tho.
  7. B

    TFS 0.X How to add temporally a item atribute

    I think it's best if you use onLook() function onLook(cid, thing, position, lookDistance) local itemInfo = getItemInfo(thing.itemid) if thing.itemid == BOOTS_ITEMID and getItemAttribute(thing.uid, "BonusSpeed") and type(getItemAttribute(thing.uid, "BonusSpeed")) == "number" and...
  8. B

    TFS 0.X How to add temporally a item atribute

    You can try to set attribute with os.time() doItemSetAttribute(item.uid, "BonusSpeed", os.time() + 60 * 60 * 20) And onLogin() or onMove() if getItemAttribute(item.uid, "BonusSpeed") and type(getItemAttribute(item.uid, "BonusSpeed") ) == "number" and getItemAttribute(item.uid, "BonusSpeed") >...
  9. B

    TFS 0.X Reduce Monsters Sight Range

    Hello guys! I want to reduce my monster's sight range, cause apparently they aggro players 15 sqms away from where they are. How can I change this? Thanks! ;p
  10. B

    Linux TFS0.3.6/Ubuntu Inaccurate addEvents (ms)

    Hello! When I have my server hosted on my machine (Windows) or localy only, I can get high precision effects with addEvents. But I've noticed (it's been a while, actually) that while hosted on an Ubuntu 14.04, the precision is lost and most effects, some quests and this even causes me some...
  11. B

    Souces TFS0.3.6pl1 8.6

    What do you mean? Sorry ..
  12. B

    Seller Tile

    You should make a price table like this (better if in a lib): local prices = { [itemid]=price, [item2id]=price2 } And you can make it in two different ways, one you'll need the 'autoloot' function which checks everything inside a container, so you can sell infinite items (that may be a problem...
  13. B

    Outfit Quest Chest problem

    Cleaner: local c = {"oriental","pirate","assassin","beggar","shaman","norseman","nightmare","jester","brotherhood","demonhunter","yalaharian","warmaster"} function onUse(cid, item, frompos, item2, topos) local name = c[item.uid-7010] if(canPlayerWearOutfitId(cid, item.uid-7000, 3)) then...
  14. B

    Souces TFS0.3.6pl1 8.6

    I've been looking for days, tryed everything, I just can't update the 8.54 one and I need the TFS0.3.6pl1 8.6. I tryiedn downloading a 8.6 (0.3.6pl1) and changing stuff like in 'resources.r', I follow a tutorial everybody could make it 8.6, except me. I just get the error 'Only protocol 8.54...
  15. B

    [spell] request

    Try this: local acombat1 = createCombatObject() local acombat2 = createCombatObject() local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_BLOCKARMOR, true) setCombatParam(combat1, COMBAT_PARAM_EFFECT...
  16. B

    [Spell] Request

    Its a spell, a spell doesn't need to nescessary "doCombat" .. I'll test it here and post if it's 100% .. You can add it like any spell. Just put needtarget="1", selftarget="0" .. And I think thats all ..
  17. B

    [Spell] Request

    And effect, and damage. I don't know if it is working anyway ..
  18. B

    [Spell] Request

    Bow's Fury (not tested): function onCastSpell(cid, var) function sendArrow() config = {[2544] = {eff = CONST_ME_HITAREA, type = COMBAT_PHYSICALDAMAGE, deff = CONST_ANI_ARROW, bdmg = 2}, [2545] = {eff = CONST_ME_HITBYPOISON, type = COMBAT_EARTHDAMAGE, deff = CONST_ANI_POISONARROW, bdmg = 2.2}...
Back
Top