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

    [TFS 1.2] Rune Match event

    Upgrade to TFS 1.2 :D
  2. cbrm

    Lua Alter table

    ALTER TABLE `players` ADD COLUMN `pvpextra` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0';
  3. cbrm

    Windows Mods where?

    You have to convert those mods into systems of LUA scripts, compatible with your TFS.
  4. cbrm

    The complete compendium of knowledge about LUA in Tibia?

    https://otland.net/threads/scripting-guide.74030/ https://otland.net/threads/beginner-scripters-dummy-proof.233921/
  5. cbrm

    Lua [TFS 0.3.6] What is the best way to check if player stand 1 square to you?

    Don't worry you can add it if you deleted it function doComparePositions(position, positionEx) return position.x == positionEx.x and position.y == positionEx.y and position.z == positionEx.z end
  6. cbrm

    Lua [TFS 0.3.6] What is the best way to check if player stand 1 square to you?

    target in front of player, unless player changes look direction if doComparePositions(getCreaturePosition(target), getCreatureLookPosition(cid)) then
  7. cbrm

    Solved Changing damage/healing values before they are applied to a creature

    What you try to achieve is only possible by denying the statschange and using doTargetCombatHealth, let's say that creature event is on read-mode and just lets you cancel it...unless source-edit is done.
  8. cbrm

    Solved Npc with global storage value

    Change Game.getStorageValue for getGlobalStorageValue
  9. cbrm

    clean script only for a particular item

    Tile* toPosition = getTile(33553, 32555, 7); std::vector<int> relocateItems = {3058, 3059, 3065, 3066}; for (Item* item : *itemList) { bool willRelocate = false; for (int relocateItem : relocateItems) { if (item->getID() == relocateItem) { willRelocate = true...
  10. cbrm

    clean script only for a particular item

    map.cpp change for (Item* item : *itemList) { if (item->isCleanable()) { toRemove.push_back(item); } } to Tile* toPosition = getTile(33553, 32555, 7); for (Item* item : *itemList) { if (item->getID() == 2392) { g_game.internalMoveItem(item->getParent(), toPosition...
  11. cbrm

    clean script only for a particular item

    If the interested one doesn't even post the server and client version we won't advance further.
  12. cbrm

    clean script only for a particular item

    with some source edition ofc
  13. cbrm

    Lua How to store a function inside a variable for future purpose? It returns nil. :(

    You haven't even posted which server you use
  14. cbrm

    [HELP]System Karma

    what?
  15. cbrm

    Lower Roshamuul Quest

    Lower Roshamuul: The Giant Traverse tested in TFS 1.2 10.95 In order to repair the bridge and advance further, the following tasks must be done. Completing a task also awards some Inquisition Gold. Rewards can be managed with Sandomo by the use of the keyword gratitude, and then repairs. Add...
  16. cbrm

    loot msg when kill player

    I tested this perfectly on Printer's tfs crying damson 8.6, I don't see what much difference these could have with the creaturescripts.
  17. cbrm

    loot msg when kill player

    registerCreatureEvent(cid, "playerLoot") <event type="death" name="playerLoot" event="script" value="playerLoot.lua"/> function getTopItem(p) p.stackpos = 0 local v = getThingFromPos(p) repeat p.stackpos = p.stackpos + 1 v = getThingFromPos(p) until v.itemid...
  18. cbrm

    Searching anti house trash system :P

    Ofc it does
  19. cbrm

    Searching anti house trash system :P

    login.lua registerCreatureEvent(cid, "houseTrash") creaturescripts.xml <event type="moveitem" name="houseTrash" event="script" value="houseTrash.lua"/> creaturescript houseTrash.lua function onMoveItem(moveItem, frompos, position, cid) if position.x == CONTAINER_POSITION then...
Back
Top