• 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!

Recent content by okurde

  1. O

    Compiling OTHire - Can't use potions on rope spot.

    It does not work for me or I am doing something wrong... Does anyone know how it can be solved? I was trying to use potion on yourself when I was on ladder tile - potion does not work I printed: doPlayerSendTextMessage(cid,25,getTileItemById(toPosition, 1386).uid) It prints high value of course...
  2. O

    Linux Players can take items from boundary of house (e.g. items in door)

    I guess that this script works like "if player want to move any special item then do not allow to perform it" - if moveitem.itemid == 6500 then doPlayerSendTextMessage(cid,25,'This item is blocked! you cannot move it!') It is now what I am looking for. I want to prevent taking all the items...
  3. O

    Linux Players can take items from boundary of house (e.g. items in door)

    Hello, is there any simple c++/lua script which prevent taking items by all players from edges of house? For exmaple from doors, walls etc, only owners should be available to do that. Or any idea where I should search it in sources? house.cpp, tile.cpp, game.cpp, movement.cpp? I have TFS...
  4. O

    Lua Is there any way to check if item is countable?

    Hello, Is there any way to check if item is moveable + can be put in player's backpack? for example an apple meets requirements, tree doesn't, etc. TFS: 0.3.7 / 0.4 Thanks in advance
  5. O

    Is it possible to clear Depot?

    Hello, I want to make script which cleans player's Depot (in special Town - ID 3) I was searching in doc/LUA_FUNCTIONS but I can not find any responsible for this job. Is it possible to make it? TFS 0.3.6 - 0.4
  6. O

    Lua NPC: onCreatureSay, onCreatureDisappear: (luaDoCreatureSay) Creature not found

    Hello, I have 2 problems with NPC. Sometimes there appear error in logs: [Error - NpcScript Interface] In a timer event called from: data/npc/scripts/Captain Marko.lua:onCreatureSay Description: (luaDoCreatureSay) Creature not found but I have no idea why. And the second problem is involved...
  7. O

    Solved function onCastSpell(cid, var) - is it possible to get target?

    Awesome! Thank you guys :))
  8. O

    Solved function onCastSpell(cid, var) - is it possible to get target?

    Okay thanks, it almost works :p How can I get position of target? Well, I did: local target = getPlayerByNameWildcard(var) if getPlayerLevel(target) < 80 -- works if getTilePzInfo(getPlayerPosition(target)) -- does not work data/spells/scripts/healing/heal friend.lua:eek:nCastSpell...
  9. O

    Solved function onCastSpell(cid, var) - is it possible to get target?

    Hello, there is heal friend script: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) setCombatParam(combat, COMBAT_PARAM_DISPEL...
  10. O

    Linux [C++] How to make possibility involved witusing item on house door? Instead of "you are not invited"

    Well, I am trying. There are 2 methods in actions.cpp - canUse and canUseEx ReturnValue Actions::canUse(const Player* player, const Position& pos) { const Position& playerPos = player->getPosition(); if(pos.x == 0xFFFF) return RET_NOERROR; if(playerPos.z > pos.z)...
  11. O

    Linux [C++] How to make possibility involved witusing item on house door? Instead of "you are not invited"

    Ok I changed source code and now when house owner leaves items in house door tile then all other players can use it :/ There must be any solution
  12. O

    Linux [C++] How to make possibility involved witusing item on house door? Instead of "you are not invited"

    Yea, maybe :) Anyway I would like to add something like this: only item with ID 2275 should be able to use on house door. It would be something like this: If (item.itemid == 2275) RET_NOERROR; else RET_PLAYERISNOTINVITED; but how can it be written in C++? ;)
  13. O

    Linux [C++] How to make possibility involved witusing item on house door? Instead of "you are not invited"

    Thank you. But hmm.. how do you think - if I change it to RET_NOERROR then everything will be OK? I think that this method is made to avoid any problems but I do not have any idea why in default source code clicking "use item with" on a house tile is blocked. Does anyone have any idea? Maybe...
Back
Top