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

How To...

Xplicit

Mapper
Joined
Jul 20, 2011
Messages
102
Reaction score
7
1.) How can i make its so when use balista, "puff" effect followed by arrow effect moving from ballista tip to 3 squares infront (west)

2.) How to make the astro clock "chime". So in orange it broaddcasts within a 10square radias, 1 O'clock -12 O'clock. In order. Each real hour... :) (Don't need or want it to match rl time just every hour). So just 1-12 in order each hour. And the 10 square radias Broadcasts from level 0-7, No more. No less.

:) Thanks for your time
 
1)
Lua:
local t ={
        a = {x = 1000, y = 1000, z = 7}, -- item pos
        b = {x = 997, y = 1000, z = 7},  -- 3 sqms west from the item 
        q = {x = 999, y = 1000, z = 7},  -- 1 sqm west from the item
        e = {x = 998, y = 1000, z = 7}  -- 2 sqm west from the item
     }
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= 20 then
       doSendDistanceShoot(t.a, t.b, CONST_ME_ARROW)
       doSendMagicEffect(t.b, CONST_ME_POFF)
       doSendMagicEffect(t.q, CONST_ME_POFF)
       doSendMagicEffect(t.e, CONST_ME_POFF)
       end
    return TRUE
end
 
Lua:
local exhaust = 3

function onUse(cid, item, fromPosition, itemEx, toPosition)
	local e = getItemAttribute(item.uid, 'e')
	if not e or os.clock() >= e then
		doItemSetAttribute(item.uid, 'e', os.clock() + exhaust)
		doSendMagicEffect(fromPosition, CONST_ME_POFF)
		fromPosition = getPosByDir(fromPosition, WEST, 1)
		doSendDistanceShoot(fromPosition, getPosByDir(toPosition, WEST, 4), CONST_ANI_SPEAR)
		doSendMagicEffect(toPosition, CONST_ME_BLOCKHIT)
		return true
	end
end
 
Back
Top