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

    Solved Lever script conversion to 1.2

    As it is now the player is teleported regardless of whether there is an item on the altar or not. For one thing, the teleport is outside the if statement and for another you can not get the item when the script loads and use that to check. You should get the item that is there when the script...
  2. forgee

    mysql error event

    You're missing 'events' table in your database. Figure out which scripts are using it, there should be instructions on what you need to add where you got them.
  3. forgee

    Update 2 line to TFS 1.2

    I have no idea what 'getItemInfo(tile.itemid).group' is but besides that, how is this? local tile = Tile(p) if tile:hasFlag(TILESTATE_PROTECTIONZONE) and tile:getItemById(1387).uid == 0 and tile:hasFlag(CONST_PROP_BLOCKSOLID) == false then
  4. forgee

    Weapon attribute

    I don't know what you're trying to do here, but you put the script in movements/scripts and movements.xml would be something like this: <movevent event="Equip" itemid="2376" slot="hand" script="script.lua"> function onEquip(cid, item, slot) if player:getSlotItem(CONST_SLOT_LEFT).itemid == 2376...
  5. forgee

    Helpme to finish my script only have bad returns please.

    That will become one large total after a while. local slots = { ['head'] = CONST_SLOT_HEAD, ['armor'] = CONST_SLOT_ARMOR, ['legs'] = CONST_SLOT_LEGS, ['feet'] = CONST_SLOT_FEET, ['left'] = CONST_SLOT_LEFT, ['right'] = CONST_SLOT_RIGHT } function...
  6. forgee

    Shot runes on invisible creatures?

    Perhaps you could turn them into area runes and use tile:getTopCreature() to check if there is a creature on the target area. The variant (var) would contain the target position. I'm not sure if that would work but it's what I could come up with at the moment.
  7. forgee

    Lua Can't make this spell work

    player:setStorageValue(5, v) 'player' is undefined. You could do like this: function onCastSpell(creature, var) if creature:isPlayer() then creature:setStorageValue(5, v) end return combat:execute(creature, var) end May I ask what you want to achieve? What would you use the...
  8. forgee

    How I can know my tfs

    The first line that shows up in the console when you start the server contains the version. Have a look at this thread: https://otland.net/threads/how-to-see-which-server-you-are-using.230892/#post-2225524
  9. forgee

    CreatureEvent [TFS 1.x] Award premium points on level advance

    Copy the script again and make sure you get all the lines. It looks like you missed the last line or two.
  10. forgee

    ZnoteAcc Convert database (Fatal Error)

    @zerghel @raf This has been fixed, just get the updated files from GitHub. https://github.com/Znote/ZnoteAAC/
  11. forgee

    [ZNOTE] query with wildcard LIKE %...%

    $data = mysql_select_single("SELECT * FROM `players` WHERE `name` LIKE '%$playername%';"); Works fine for me.
  12. forgee

    Solved reward on certain lvl -> shop points

    I'm way too slow. Works with both Gesior and ZnoteAAC though. https://otland.net/threads/tfs-1-x-award-premium-points-on-level-advance.237523/ Dude you're quick.
  13. forgee

    CreatureEvent [TFS 1.x] Award premium points on level advance

    I made this after it was requested here. Not much to say, players are awarded premium points for reaching certain levels. See script comments for configuration. Supports TFS 1.0+. Works with both Gesior and ZnoteAAC, probably works with any AAC as long as you know where the points are stored...
  14. forgee

    ZnoteAcc Convert database (Fatal Error)

    Add this in engine/function/general.php: function elapsedTime($l_start = false, $l_time = false) { if ($l_start === false) global $l_start; if ($l_time === false) global $l_time; $l_time = explode(' ', microtime()); $l_finish = $l_time[1] + $l_time[0]; return...
  15. forgee

    [ZNOTE] API

    Yes I do. You should not need to set up the session, have a look at api/api.php, it handles that. It also includes config.php, engine/function/users.php, general.php, database/connect.php. https://github.com/Znote/ZnoteAAC/blob/master/api/api.php#L9-L12 Just include module.php in your script...
  16. forgee

    how do I get just magic sqm in the char looks (exori vis)

    In spells.xml, change casterTargetOrDirection="1" to direction="1" and remove needTarget="1" if you have it. Use createCombatArea(AREA_BEAM1). I think that should work like the old school strike spells.
  17. forgee

    I've added it, and it doesn't work.

    https://otland.net/threads/otclient-builds-windows.217977/
  18. forgee

    [ZNOTE] API

    Are you sending the response (SendResponse($response))? The return of mysql_select_single is an array, even if you only fetch one field. The player name is in $player['name']. Edit: I'm a bit intrigued with the API myself, so I wrote a simple test module to fetch player name and level. It looks...
  19. forgee

    Unknown Version

    It's TFS 1.2, use Tibia 10.77. Next time, it's easier if you just write the server version in the post. It's on the first line in the console.
  20. forgee

    Suggestion New set of standards for the OtLand community.

    Why did you even have to bring this up again? It's been virtually a week since your last squabble. Please explain again how this is not a personal attack. From where I'm sitting it looks like you're the one who just attacked @Codex NG, not the other way around, and unproductive is not the word...
Back
Top