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

    Solved can't load some npc

    check the error? it says addMonster.. not npc =)
  2. H

    Switch Script

    local underItem = 1642 -- the item you have under the item you want local distance = x -- the amount of squares away from the lever the items are, needs to be the same for all directions local items = { [itemid] = x, -- change the itemid to the actual itemid and then change the x to the amount...
  3. H

    A Event Script with the following things please..

    local config = { [1] = { posTeam = {x=xxx, y = yyy, z=zzz}, -- change this globalTeam = xxx -- change to an unused globalstorage }, [2] = { posTeam = {x=xxx, y = yyy, z=zzz}, -- change this globalTeam = xxx -- change to an unused globalstorage }, others = { itemid = xxx, --...
  4. H

    Command /i with exception.

    local restricted = { itemids = {1111, 1112}, exceptions = {'me', 'you', 'and the other one'} } function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end local t =...
  5. H

    A Event Script with the following things please..

    well he is gonna give the player the award himself.. so he can tp the guy out himself.. but if your gonna make a script for it you might aswell add so he can decide the award in the talkaction, and then the creaturescript gives it :) anyways if you have trouble making it you can use this one...
  6. H

    A Event Script with the following things please..

    bogart, u don't need a creaturescript.. just make sure the area is a pvp zone..
  7. H

    Lua NPC To Change Outfit!

    doCreatureChangeOutfit(cid, {lookType = 15})
  8. H

    Lua How many in arena?

    local areaposleftupp = {x= , y = ,z = } -- position left up corner of the arena, make sure you cover all levels of the arena local areaposrightdown = {x= , y = ,z = } -- position right down corner of the arena, make sure you cover all levels of the arena local amount = 0 for x =...
  9. H

    Lua Black Skull Problem

    Yea it's redskull frags + blackskull frags.. so if you want it to be 19 you should make it dailyFragsToBlackSkull = 3
  10. H

    Crystal Arrow

    sorry picachu, missed your post =)
  11. H

    Crystal Arrow

    in items.xml you add <attribute key="ammoType" value="bolt" /> or <attribute key="ammoType" value="arrow" /> to that item make sure you have these lines too <attribute key="weaponType" value="distance" /> <attribute key="slotType" value="two-handed" /> or just compare it to an...
  12. H

    Lua Hairycles NPC - Help

    Well you have done some misstakes in the script, like you made elseif topic == 1 in two different places.. it won't check the second time. but I've fixed those and made more structure to the script.. I've probably missed something but try this dofile(getDataDir() .. 'global/greeting.lua')...
  13. H

    Lua Hairycles NPC - Help

    Well I'd start with making else npcHandler:say("You have storage " .. storage .. " in blabla and storage " .. storage2 .. " in blabla2") this way you know if it matches something in your script.. and if he don't even say that you know that there is a problem before that.. =)
  14. H

    Lua Hairycles NPC - Help

    get any erros? you sure you have storage 294 as 0 or 1?
  15. H

    [LUA] how to activate teleport when all task monsters are killed..

    Yea you define those by saying for xa = afrompos.x,atopos.x do for ya = afrompos.y,atopos.y do for za = afrompos.z,atopos.z do this makes it go from a certain position to another one, so it checks every square within this area. You don't need to add actionid in the script if you add it in...
  16. H

    [LUA] how to activate teleport when all task monsters are killed..

    You need to make a new script for the tp. so just add my script in an onstepin script.. (write the function on top and then write return true end in the end of the script..) and then you add it in movements.xml and the actionid you use there you put on the teleport you need to step on to enter...
  17. H

    [LUA] how to activate teleport when all task monsters are killed..

    shrrek this script will work like the last script you wanted. and no you don't need ondeath.. only check the area if a player is there. local afrompos = {x = 33035,y = 3677,z = 8} -- change to the coordinates of the area local atopos = {x = 33055, y = 3717, z = 8} -- change to the...
  18. H

    Lua Check if Player A is in a certain area, Possible?

    function onStepIn(cid, item, frompos, item2, topos) local room = { -- room with Hide fromX = 1221, fromY = 651, fromZ = 8, toX = 1246, toY = 668, toZ = 8} local monster_pos = { [1] = {pos = {1232,662,8}} } local player_pos = {x=1239, y=659, z=8} local cansel_pos = {x=504...
  19. H

    Lua Check if Player A is in a certain area, Possible?

    belthazor I rewrote some of your script, no need to check the area twice function onStepIn(cid, item, frompos, item2, topos) local room = { -- room with Hide fromX = 1221, fromY = 651, fromZ = 8, toX = 1246, toY = 668, toZ = 8} local monster_pos = { [1] =...
  20. H

    Lua Check if Player A is in a certain area, Possible?

    local afrompos = {x=1221, y=651, z=8} local atopos = {x=1246, y=668 z=8} for xa = afrompos.x,atopos.x do for ya = afrompos.y,atopos.y do for za = afrompos.z,atopos.z do local npos = {x = xa,y = ya,z = za} if isPlayer(getTopCreature(npos)) then end end...
Back
Top