Count Dracula
New Member
- Joined
- Jul 30, 2013
- Messages
- 36
- Solutions
- 1
- Reaction score
- 1
Hello guys
I need to use a vial of blood on a tile and if I have one storage, it will remove one tile and summon a monster.
But if the player uses the blood without the storage nothing happens, but creates a pool of blood over the tile.
My problem begins now. Because the pool of blood is over the tile, the player with the storage can't use the vial of blood on the floor with the action id, and continue the quest.
My script of the vial of blood is as it follows:
I need to use a vial of blood on a tile and if I have one storage, it will remove one tile and summon a monster.
But if the player uses the blood without the storage nothing happens, but creates a pool of blood over the tile.
My problem begins now. Because the pool of blood is over the tile, the player with the storage can't use the vial of blood on the floor with the action id, and continue the quest.
My script of the vial of blood is as it follows:
Code:
elseif target.actionid == 62997 then
local lordvampire = Tile(lordVampirePosition):getItemById(9242)
if not lordvampire then
return true
end
local vampire1 = Tile(vampire1Position):getItemById(9239)
if not vampire1 then
return true
end
vampire1:remove()
local vampire2 = Tile(vampire2Position):getItemById(9239)
if not vampire2 then
return true
end
vampire2:remove()
addEvent(clearMob, 2 * 60 * 1000, Position(32937, 31457, 2), Position(32943, 31464, 2), 'vampire bride', Position(32939, 31459, 2))
Game.createMonster('vampire bride', Position(32939, 31458, 2))
Game.createMonster('vampire bride', Position(32941, 31458, 2))
addEvent(Game.createItem, 2 * 60 * 1000, 9239, 1, vampire1Position)
addEvent(Game.createItem, 2 * 60 * 1000, 9239, 1, vampire2Position)
end