• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. miens

    Lua Custom Decay

    Hi! In my server when certain monster gets a hit there is a chance he drops an item on his position: function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) if math.random(0,100) >50 and primaryDamage+secondaryDamage <...
  2. miens

    rme - cant see lower levels

    Only I think its complete bullshit? :D Thanks for help.
  3. miens

    rme - cant see lower levels

    Hi. I want to make stairs to the underground. And I want the stairs from the lower level to be visible on ground level. Unfortunately when I delete all items from ground level the tile becomes black and you cant see anything from lower levels. How can I make a tile transparent? Please see...
  4. miens

    Alpha-Test Part 2 - Multiverse - Released **New Client**

    I think this topic kina went in wrong direction. On a side note I believe developers should think on their own not blindly follow what customers are saying. But lets get back to what we should be talking about: the custom server. I think it is good idea but information provided is not deep...
  5. miens

    Help with referencing to items held by offline players

    oh yes forgot about that case. I have to apply my nazi scripting there as well thanks for pointing this out :) I agree that the solution Cipsoft came out with is much cleaner and easier. But it doesn't scale at all. Right now with my system I can virtually modify any items attribute...
  6. miens

    Help with referencing to items held by offline players

    ok I got it to work. When players casts a spell I modify the item and schedule the event. If event detects that player is offline it does nothing. Added on logout callback that modifies the item back to its original form. Then I enabled onMoveItem in events.xml and added an if statement there...
  7. miens

    Help with referencing to items held by offline players

    I found out that there is player event named onMoveItem. Does it triggers when player removes item from his hand? Will it come in handy in this situation?
  8. miens

    Help with referencing to items held by offline players

    I want the spell to be castable on any weapon so this wont work. Is there an onUnequip event for player?
  9. miens

    Help with referencing to items held by offline players

    But theres another problem with this solution. What if player who casted a spell didnt logged out but gave the item to other player and that other player logged out? Server would crash again. Can I forbid player from unequiping item for some time?
  10. miens

    Help with referencing to items held by offline players

    Im saving item.uid in storage value. As long as player remains logged in executing Item(storagevalue) returns desired item just like it should. But in onLogout and onLogin it returns nil. Most likely because onLogout this item has been unloaded already and onLogin it has been loaded but was...
  11. miens

    Help with referencing to items held by offline players

    When I save item.uid in storage value it works fine until a the players logs out. Then after he logs in apparently the item has different uid cause when i try to print(Item(player:getStorageValue(1690))) it comes out as nil. And player data is actually cleared BEFORE onLogout callback cause...
  12. miens

    Help with referencing to items held by offline players

    Hi! In my ots I wanted to make a spell that would modify weapons attack value but only temporarily. So I Almost made it to work with weapon:setAttribute(ITEM_ATTRIBUTE_ATTACK, 100) but then I need to take the bonus back after some time. So I decided to use addEvent for this. local...
  13. miens

    How to make new usable item?

    Hi, I need to make new item that would have "use with" option. I used OTItemEditor 0.5.2 created a new item and selected "moveable" "pickable" and "usable" tickboxes. The usable's tickbox text is red for some reason. After I edited items.otb I copied it to client together with new tibia.dat file...
  14. miens

    Is it possible to make targetable instant spell?

    Yea I'm using OTClient and TFS. I think I will just make player use invisible items from invisible inventory slots. It seems like the easiest option. Thanks for saving my time once again Flatlander :)
  15. miens

    Is it possible to make targetable instant spell?

    Ok thanks for quick reply :) one las question is it possible to read cursor's location from lua's perspective? Are there any functions to do it or is it possible to implement function like this?
  16. miens

    Is it possible to make targetable instant spell?

    Hello, I was toying with spells recently and I came to conclusion that I need instant spells that need target. Similarly to runes. So as the title says: is it possible to make spells that turn your mouse cursor to crosshair so that you have to select target? All ideas are welcome even if it...
  17. miens

    Conroling projectile speed

    For anyone interested in topic: Flatlander kindly responded to my messages and I have sorted this out. You have to download OTClient project, and change speed in missile.cpp file. If you want to make custom speed for every projectile you have to serialise it over network. In order to do that you...
  18. miens

    Conroling projectile speed

    Thanks for this clue, at least now I know its doable :) I wrote a message to that topics creator but as I am not sure if he is still active nor if he will be willing to help me the topic remains open. Any help is still welcome.
  19. miens

    Conroling projectile speed

    Hello I wonder if there is any way to controll the speed of projectile when using for example hmm rune. If so how? And if no one knows if it can be done can you at least point me in the direction where I should look for it?
  20. miens

    Cant create new Variant

    I found my way around it using positionToVariant().
Back
Top