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

    Agressive Monsters

    Is it possible to source edit so monsters will target/attack other monsters as well ?
  2. D

    Player.cpp, player.h information needed

    Hello everyone ! Okay, so what I want to know is : If I add a new variable in player source code will it be saved when logout or else ? Here an exemple about what I mean : http://otland.net/f35/doplayersetextraattackspeed-cid-speed-58945/ In this code Darkhaos add a new variable to...
  3. D

    LightColor, LightLevel and setCondition

    Hi, I would like to know what range those 2 variable has and if possible how to know which color will result from the lightcolor. 215 is the base value for utevo lux and it seem white/yellow, 29 seem to be blueish. On what this color are based? I want to know if it's possible to set...
  4. D

    Tibia 9.86 adding things to tibia.dat

    Hi I heard it's possible to add item in tibia 9.86 but that it makes the market to not work properly ( or not at all ). As I don't plan to use the market I want to know how to add it.
  5. D

    Source modification New lua function.

    Hello ! I would like to know how does pop works. For single arg function it's not a problem. But for multi args how does it works? int32_t LuaInterface::luaDoPlayerSetRate(lua_State* L) { //doPlayerSetRate(cid, type, value) double value = popFloatNumber(L); uint32_t type =...
  6. D

    Modify the players light.

    Hi, I don't know why but the function doSetCreatureLight(cid, lightLevel, lightColor, time) don't seem to work for me. I would like to set a player a lightlevel and lightcolor with undifined time (and being able to modify it later). I looked at utevo lux spell but I don't know how to set...
  7. D

    Night effect

    edit--
  8. D

    Is there a way to set an "Use" event on players ?

    I want do some event when a player "use" another players. (by use I mean like ctrl+click) I'm open to source edit.
  9. D

    Is there a way to "intercept" weapon damage ?

    Hello everyone, I want to know if there is a way to intercept ALL damage dealt by weapons use. (using weapon script maybe?) I have this script (posted by neon) local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat...
  10. D

    Database query result question.

    I added few lines in iologindata.cpp to add a variable player->customvar and It worked really well, I was able to retrieve it as planned. The problem is that I'm not able to browse the result of a query when it is a list. This is the code I came up with. What I want is to get the position of...
  11. D

    Database items trensfer

    Hello everyone ! Here's my issue : I want to move item from player_items to depot_items and if possible to a custom made table temp_items using dbquerry in lua script. I know that player>depot is easily done with lua functions but the goal would be to move it to a custom made table...
  12. D

    Editing base id item attribute in runtime

    It is possible to edit during runtime (by this I mean with lua script) the "attributes" of the base id item? ( by this I mean : by exemple changing the attack from ice rapier so all the new dropped one will have this new value (it doesn't matter if already made one changes too)) An equivalent...
  13. D

    Items attributes on newly created item.

    Hello everyone ! I'm having big trouble with code that involve attributes. When using mock's upgrade script (modified) I can change my attributes with the onUse (trigger?) and it works really well. But what I really want is a way to change the attributes on a newly created item. So first of...
  14. D

    onKill Monster loot change

    So I've found some piece of code from Erikas Kontenis : http://otland.net/f82/special-bonus-loot-storage-155952/ That will let us add loot to body. Tested it work. What I want is to add custom attributes to the items ( that include changing the base attack, base defence, base armor and...
  15. D

    Get killed monster name

    As in title I need to know the name of the monster I just killed. I tried using : function onKill(cid, target) if(isPlayer(target) ~= TRUE) then local monstername = getCreatureName(target):lower() print(monstername) end return true -- that was the missing...
  16. D

    New "stats" system on items.

    Hello all ! First of all I'm new to lua and cpp coding. I've learned all I know there with all your code exemple :) . I've joined a project as second coder so I will now need your help a little bit to implement a stats system. I'm not really comfortable with source modification as everytime...
Back
Top