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

    TFS 1.0 source request

    What do you mean by the first math.random? Just any that I use?
  2. C

    TFS 1.0 source request

    I have noticed that math.random sets up the same way after each server restart. Maybe someone could introduce math.random based on os.time()? This would make the randomness a little more random
  3. C

    Solved CreateItem Error TFS 1.0

    thank you!
  4. C

    Solved CreateItem Error TFS 1.0

    doCreateItem(1438, {x=11813,y=9491,z=7}) Attempt to index a nil value I am wanting to create the item at that pos.
  5. C

    Solved Remove from slot?

    How come this won't work? if Player(cid):getSlotItem(CONST_SLOT_ARMOR) then Player(cid):getSlotItem(CONST_SLOT_ARMOR):remove(1) end This would cut down on script size, and it looks fine, but doesnt work. The way you gave me is fine, but my way doesnt work :(
  6. C

    Solved Remove from slot?

    No errors, TFS 1.0 This isnt working: if getPlayerSlotItem(cid, CONST_SLOT_ARMOR).uid > 0 then doRemoveItem(getPlayerSlotItem(cid, CONST_SLOT_ARMOR).uid, 1) end I also tried: if getPlayerSlotItem(cid, CONST_SLOT_ARMOR).itemid > 0 then...
  7. C

    getPlayerMaxCap(cid)?

    Thanks, but I barely beat ya to the reply :) I was on a GM char
  8. C

    getPlayerMaxCap(cid)?

    NVM! i was on a gm char -stupid-
  9. C

    getPlayerMaxCap(cid)?

    Doesnt work. local player = Player(cid) if getPlayerFreeCap(cid) == player:getCapacity() then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You meet the requirements.') else...
  10. C

    getPlayerMaxCap(cid)?

    Does a function like this exist for TFS 1.0? If not, can someone make one for me?
  11. C

    getPlayerByGUID?

    thank you
  12. C

    getPlayerByGUID?

    Is there a function for getPlayerByGUID? Could someone make one for me?
  13. C

    Lua [TFS 1.0] Global Storage

    setGlobalStorageValue(10000, 1)
  14. C

    NPC Sword Buyer [10.38+]

    Nice, handy. Good release :)
  15. C

    Lua mayNotMove on 1041 rev for TFS1.0?

    Is this function in the newest rev? I can't find it in the server
  16. C

    Lua Item function problems

    bump
  17. C

    Is is possible to check if monster can be spawned on random tile?

    function canAddThing(pos) local tile = getTileThingByPos({x=pos.x, y=pos.y, z=pos.z, stackpos=0}) return tile.uid ~= 0 and not hasProperty(tile.uid, CONST_PROP_BLOCKSOLID) and not getTilePzInfo(pos) and not getTileHouseInfo(pos) end if canAddThing(pos) then Try that.
  18. C

    Lua Item function problems

    Provided now.
  19. C

    Lua Item function problems

    TFS 1.0 (10.41 rev) function getItemAttack(uid) return ItemType(getThing(uid).itemid):getAttack() end function getItemArmor(uid) return ItemType(getThing(uid).itemid):getArmor() end function isArmor(uid) if (getItemArmor(uid) ~= 0 and getItemWeaponType(uid) == 0) then return true else return...
  20. C

    Solved TFS 1.0 (10.41) List of conditions, etc?

    Actually I found it in const.h, but thanks man!
Back
Top