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

    [Need a fix] (internalGetPlayerInfo) Player not found when requesting player info #1

    Never thought I would release this function like this...but oh well...here goes. local monsterName = {"Pythius The Rotten"} local storageKey = 9933 local monsterPos = { x = 333, y = 837, z = 15 } local newPos = { x = 326, y = 840, z = 15 } local area = { fromPosx = 320, toPosx = 345...
  2. Ratser

    [Need a fix] (internalGetPlayerInfo) Player not found when requesting player info #1

    That means the Monster and/or Player ID (pid) is not being saved in the table. I'll try something different.
  3. Ratser

    [Need a fix] (internalGetPlayerInfo) Player not found when requesting player info #1

    You're using the last script I posted right? Try the one I posted before or just let me remove the "break" from the last one.
  4. Ratser

    [Need a fix] (internalGetPlayerInfo) Player not found when requesting player info #1

    Try now... local isMonsterInArea = 0 local monsterId = nil local monsterName = {"Pythius The Rotten"} local storageKey = 9933 local monsterPos = { x = 333, y = 837, z = 15 } local newPos = { x = 326, y = 840, z = 15 } local areaPos = { z = 15, fromPos = { x = 320, y = 828 }, toPos...
  5. Ratser

    [Need a fix] (internalGetPlayerInfo) Player not found when requesting player info #1

    My bad...9933 it'll be then. local isPlayerInArea, isMonsterInArea = 0, 0 local playerId, monsterId = nil, nil local monsterName = {"Pythius The Rotten"} local storageKey = 9933 local monsterPos = { x = 333, y = 837, z = 15 } local newPos = { x = 326, y = 840, z = 15 } local areaPos = { z...
  6. Ratser

    [Need a fix] (internalGetPlayerInfo) Player not found when requesting player info #1

    Check back my post. I fixed something. Are you sure the player has storage 9935?
  7. Ratser

    [Need a fix] (internalGetPlayerInfo) Player not found when requesting player info #1

    Phew... pythiustherotten.lua: local isPlayerInArea, isMonsterInArea = 0, 0 local monsterId = {} local monsterName = {"Pythius The Rotten"} local storageKey = 9935 local monsterPos = { x = 333, y = 837, z = 15 } local newPos = { x = 326, y = 840, z = 15 } local areaPos = { z = 15, fromPos...
  8. Ratser

    [Need a fix] (internalGetPlayerInfo) Player not found when requesting player info #1

    What is this script for? A portal?
  9. Ratser

    [Need a fix] (internalGetPlayerInfo) Player not found when requesting player info #1

    So...only ONE player can be in the room. What should happen when more people try to join? Is the room open or is there a door or a teleport that sends the player there?
  10. Ratser

    [Need a fix] (internalGetPlayerInfo) Player not found when requesting player info #1

    How...are you calling a movement and a globalevent in a same function? Is this a mod?
  11. Ratser

    OnPush [ Help Please ]

    If A tries to push B and B is attacking a MONSTER called "Target Dummy" then it won't be pushed. If he's attacking a PLAYER called "Target Dummy" then it will.
  12. Ratser

    OnPush [ Help Please ]

    Thought that check wouldn't be necessary but oh well... function onPush(cid, target, ground, position) local targetlist, ret = {"Target Dummy"}, true if(isCreature(target) and isMonster(getCreatureTarget(target)) and isInArray(targetlist, getCreatureTarget(target):lower())) then ret =...
  13. Ratser

    Lua Outfits.xml > quest="storage" - doesn't work?

    Eggsactly.
  14. Ratser

    Lua Outfits.xml > quest="storage" - doesn't work?

    Actually, both solutions are easy. local itemId, outfitId, storage, uniqueId = 5924, 15, 60748, 58272 function onUse(cid, item, fromPosition, itemEx, toPosition) if(item.uid == itemId) then if(getPlayerStorageValue(cid, 60748) < 0) then doPlayerAddItem(cid, 5924, 1)...
  15. Ratser

    Quest door starts a timer

    Hmm kinda strange that it returns text. Oh well...about os.date: Use setPlayerStorageValue(cid, value, os.time()) and to get the date use (getPlayerStorageValue(cid, value) > 0 and os.date("%d/%m/%Y %H:%M:%S", getPlayerStorageValue(cid, value)) or nil). Or if you want the direct and risky way...
  16. Ratser

    Quest door starts a timer

    AFAIK getCreatureStorage or getPlayerStorageValue returns an integrer. So using setPlayerStorageValue for storing text or a date other than os.time() is useless :p.
  17. Ratser

    requesting give premium talkaction ???

    It can be done in a single script: premium.lua: function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end local t = string.explode(param, ",") if(not tonumber(t[2])) then...
Back
Top