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

    Lua in pairs

    I would like to know if there is some way to do i jump to next value in "in pairs": local thing = { [1234] = {1, 2, 3, 4}, [1236] = {1, 2, 3, 6} } for i, v in pairs(thing) do print(i, v[i-1233]) -- end E.g: in this script, it will print : "1234, 1 1236...
  2. L

    Lua Increase player hunger

    I would like to know how to do the food( from getPlayerFood) reduces faster than normal Thx ^_^
  3. L

    Lua Remove a Player Item

    I would like to know how do i remove a item from the player, but i need remove just the item with a given attribute E.g: the player has two items with the same ID but with different ActionID, the player should lose just the item with a given action ID Thx by the attention ^_^
  4. L

    Lua Execute something every week

    I would like to know how do i execute something every week, can i do that with onTimer? Thx by the help ^_^
  5. L

    Lua Get quotient in LUA

    I would like to know how to get the quotient of a operation, there is any function for this? Thank you ^_^ Edit: I've got it, thx anyway xD
  6. L

    Lua Problem with NPC

    I have a problem with a NPC, when i type on tibia the number that the NPC asks, it gives this error: "can't compare nil with number", or something like that, i don't know where is the error. Here is the script: local keywordHandler = KeywordHandler:new() local npcHandler =...
  7. L

    Lua Npc get a number from player

    I would like to know how do I make a npc that can receive a number of the player and execute the code based on the number. E.g: The player type a number, and the number typed will be the ActionID of the item that will be given to the player. I've tried the old method of versions before 8.4...
  8. L

    Lua Create Item with ActionID

    Someone knows how to create a item with a ActionID, I've tried this, but it did'nt work: doItemSetAttribute(doPlayerAddItem(cid, 6092), aid, 100) Thx again ^_^
  9. L

    Lua Move Creature

    I would like to know a way to make a creature move from a position to a new position, is there any function that i can use to do this? Edit: I need to make the creature walk, not to teleport the creature. Thx by the attention ^_^
  10. L

    Lua Remove creatureEvent

    I just wanna know if exist a function that can remove a creatureEvent from a creature, if exist, which one?. Thx by the attention ^_^
  11. L

    Lua Error in StatsChange

    I would like to know how do I make a creature lose HP when it takes damage, I've tried something with onStatsChange but it didn't works :(. function onStatsChange(cid, attacker, type, combat, value) if type == STATSCHANGE_HEALTHLOSS then doCreatureAddHealth(cid, -50)...
  12. L

    [help] doItemSetAtrribute

    I tried this: doItemSetAttribute((getPlayerSlotItem(cid, CONST_SLOT_ARMOR).uid), "absorbPercentFire", "95") at my server, but nothing happens! I walked in a fire field, and I lose 20hp But when I replace the "absorbPercentFire" for "armor" the armor gets 95 armor:confused:
Back
Top