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

    CreatureEvent [TFS 0.3.6, 0.4?] onAdvance reward

    add this into an onAdvance creature event (should be one in by default) inside the onAdvance(cid, ...) function local st = getPlayerStorageValue(cid, lvlForNext) if st <= newlevel then if st == -100 then local tmp = prizes[getPlayerStorageValue(cid, rewardLvl)]...
  2. Z

    [any TFS] print_r, improved print

    whenever i'm coding something and is troubleshooting, print_r (which is a function in php, ported to lua here) is a godsend for checking any problems with tables. it iterates through an entire table and prints all values/subvalues in good formatting, it makes it so much easier to test things...
  3. Z

    Custom house system - build your own house

    So I've worked a little bit on a system to allow players to actually build their own houses, like in minecraft. Some examples: https://zippy.gfycat.com/WarpedBrownChickadee.webm -- doesnt seem like i can show the gif directly in the thread :( I currently don't have any good program to capture a...
  4. Z

    Lua onCreatureAppear

    if i want to do something with a monster when it spawns, is there any other way than onCreatureAppear? iright now i have script="spawn.lua" in the creatures xml files, and in spawn.lua function onCreatureAppear(self, creature) ... end where self:getId() would return the monster unique id, so i...
  5. Z

    Lua Individual monster variables

    I have added some custom variables to monster files, like (just an example) <myown zone="1" type="2"> and am currently trying to figure out the best way to fetch those variables for various events like onKill/onDeath/onHealthChange, and the best thing i came up with was on server startup going...
Back
Top