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

Lua POI Blood grave help

destroyer667

Member
Joined
Nov 21, 2007
Messages
290
Reaction score
6
For some reason this script isn't working. Using Avesta 0.6.3 (Uniqueid on grave stone 1408 is 9901 i checked)

i get 0 errors in console when i use blood on grave stone.

Lua:
<action uniqueid="9901" script="poi/bloodgrave.lua"/>
Lua:
local newpos = {x = 32791, y = 32332, z = 10}
local splash = {x = 32791, y = 32334, z = 9}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local blood = getTileItemById(splash, 2025)
	if blood.uid > 0 and blood.type == 2 then
		doRemoveItem(blood.uid)
		doSendMagicEffect(getThingPos(cid), CONST_ME_DRAWBLOOD)
		doTeleportThing(cid, newpos)
		doCreatureSay(cid, 'Muahaha..',16)
		doSendMagicEffect(newpos, CONST_ME_MORTAREA)
		return 1
	end
end
 
Last edited:
splash position should be position of gravestone, and you're then supposed to use the gravestone.

not how it works in real though

check if id of blood pool is 2016 or 2025
 
the id of blood was 2025 i had to check that. How can i get it to work like rl? where you use the vial of blood on the grave and it auto teleports you?. and yes i have the splash on the grave stone.


and the script works i just never used the gravestone. Anyway i can make it like rl?

"Use Vial of blood on stone Teleport"

instead of "Use vial of blood on stone, Use stone teleport"


Edited it some.
Lua:
local newpos = {x = 32791, y = 32332, z = 10}
local splash = {x = 32791, y = 32334, z = 9}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local blood = getTileItemById(splash, 2025)
	if blood.uid > 0 and blood.type == 2 then
		doRemoveItem(blood.uid)
		doSendMagicEffect(getThingPos(cid), CONST_ME_DRAWBLOOD)
		doTeleportThing(cid, newpos)
		doCreatureSay(cid, 'Muahaha..',16)
		doSendMagicEffect(newpos, CONST_ME_MORTAREA)
		return 1
	end
end
 
Last edited:
Also for this script it works fine it just doesn't move player south and send msg in orange. I dont get any errors in console

Lua:
function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) and getPlayerLevel(cid) >= 80 then
		doTeleportThing(cid, {x=32791, y=32327, z=10})
		doSendMagicEffect(position, CONST_ME_MAGIC_BLUE)
		doSendMagicEffect({x=32791, y=32327, z=10}, CONST_ME_MAGIC_BLUE)
	    elseif isPlayer(cid) and getPlayerLevel(cid) <= 80 then
		doMoveCreature(cid, SOUTH)
	   	doCreatureSay(cid, "You must be at least level 80 or higher.", TALKTYPE_ORANGE_1)
end 
  return 1 
  end
 
Back
Top