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

    Lua Run local function

    First of sorry for the lack of "coding-terms" Im just trying to learn by myself. Im just wondering how to execute a local function the best way. Atm Im running them by addEvents which Im guessing is not optimal. How I do it atm: local function testFunction(cid) //stuff// end if player then...
  2. Gaddhuve

    Lua Simple getWorldTime question

    Hi folks, Im trying to make a script using the getWorldTime function but cant get it working. Im really bad at this stuff so would be grateful for some help! function onSay(player, words, param) if getWorldTime() < 1435 and getWorldTime() > 1450 then player:popupFYI('Working') end...
  3. Gaddhuve

    Lua 1.1: OnStepin function that makes NPC talk

    So Im not really sure what the best way to do this. Could someone point me in the right direction? This is my attempt: local function myFunction(creature, pos) local targetNpc = creature('NPC'):getName() if targetNpc ~= nil then addEvent( function (npcID)...
  4. Gaddhuve

    Lua TFS 1.1 Game.createMonster spawns duplicated creatures

    Hi folks, Im playing around in this script and when using Game.createMonster it spawns two of the same monster instead of just one. Ideas to what might cause this? local t = { effectposswitch = Position(1658, 1100, 11), effectposwall = Position(1645, 1099, 10)...
  5. Gaddhuve

    Lua Convert old script to 1.0

    Hey guys, got favor to ask. The script below used to be one of my favourites but since I switched to 1.0 it does not work so Id be really thankful if someone could convert it for me! local t = { npc = 'Npc', text = 'Text 1', storage = 13518, pos = {x=1523, y=1326, z=7} }...
  6. Gaddhuve

    Lua Fast travel system for 1.0

    Im having some issues with this fast travel like system and Im really hoping someone could help me out. What is does is opens a modalwindow on-stepin with a location to fast travel to, after discovering the area. When I get the modalwindow there are no available selections (even tho discovered)...
  7. Gaddhuve

    [movement] Hopefully an easy fix

    Hello, Im learning lua and came a cross a line which I am not sure how it should be written correctly. Would appriciate if someone could take a look at it. So basically you step on a tile and after x seconds an NPC will appear, Im writing it like this but it wont work. addEvent(doCreateNPC...
  8. Gaddhuve

    0.4 TFS sources

    I have donated to OTland to gain access to the private subversion. Once donated I started looking around and I can't find the branch or trunk for 0.4 but could not find it. Here is where I think it was suppose to be located at but it's not. Anyone know where I can find it?
  9. Gaddhuve

    Lua Cut Scene in OT - Need someone to look over my code

    Hi guys. I am trying to make something like a cutscene in my TFS server and need someone experienced to look over my code. What is it meant to do? *When you walk on Ferumbras throne you get teleported back 3 tiles. *One second later Ferumbras will appear on the same throne and begin his...
  10. Gaddhuve

    Damson and Mystic - Updating server

    Howdy. So for over a year now I have been using the 0.3.4p2 Crying Damson version of TFS and my community has grown quite large as has the world and scripts. But as time goes by so does technology and it's time for my OTserv to grow from 8.42 to a 8.7. I looked around and found TFS v0.2.10...
  11. Gaddhuve

    Lua Need someone to look over my peice of code

    Hi guys! I have been trying to play around some in LUA scripting to make me a start of a cut scene code. However this peice of code does not work. The idea is that when a player walk on a tile two NPCs will appear and start talking. I use the addEvent function for the delay between the...
  12. Gaddhuve

    Cut Scene in OT - Need someone to look over my code

    Hi guys! I have been trying to play around some in LUA scripting to make me a start of a cut scene code. However this peice of code does not work. The idea is that when a player walk on a tile two NPCs will appear and start talking. I use the addEvent function for the delay between the...
  13. Gaddhuve

    On advance to x level doPlayerSendTextMessage

    All I want is when a player reach x level she gets this message function onAdvance(cid, skill, oldLevel, newLevel) if(newLevel >= 40 and getPlayerStorageValue(cid, 99882) < 1) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)...
  14. Gaddhuve

    [C++] Need someone to check this code!

    Im learning C++ so I thought it would be a good idea to try edit some TFS sources. This is the code Im using Player.cpp std::string Player::getRanger(uint32_t level) const { std::string rang = "Rank 1"; if(level >= 40 && level <= 45) { rang =...
Back
Top