--[[
Author: Ethan
Script: Magic Elemental Stones Quest
MOD: Missions Ethan's Mod
Created: 25.08.2011 r.
Syntax created by Ethan
]]--
--[[ LOG:
Beta v1 - done.
FIXES:
- STORAGE
ADDED:
-Horkruks system
-Thanatos's Temple
-Fergus Sword
]]--
--[[
CONFIG - TABLE
]]--
local stones = {
[6500] = {
[1] = {
storage = 40000
teleport = {x= pos.x, y= pos.y, z= pos.z}
monsters =
items = {
id1=
id2=
id3=
}
}
}
[6501] ={
[2] = {
storage = 40001
teleport = {x= pos.x, y= pos.y, z= pos.z}
monsters =
items = {
id1=
id2=
id3=
}
}
}
[6502] ={
[3] = {
storage = 40002
teleport = {x= pos.x, y= pos.y, z= pos.z}
monsters =
items = {
id1=
id2=
id3=
}
}
}
}
local horkruks = {
[12327] = {
name = "Horkruks"
exp = 20000
rate = 1.0 --Config
}
[12326] = {
name = "Horkruks"
exp = 25000
rate = 1.0 --Config
}
[12325] = {
name = "Horkruks"
exp = 15000
rate = 1.0 --Config
}
--[[
Quest OPIS:
-Klikajac na kamien zostajesz przeteleportowany na miejsce 'zrzutu' - tj. do potworow.
-Po rozmowie z NPC Deathly Hallow zostajesz poblogoslawiony DeathMakerem - Twoje hity z SD sa zwiekszone na 5 minut.
-Walczysz z Death Ghorotami - podatnymi na smierc, ale majacymi duzo HP
-Przechodzisz expowisko i otrzymujesz nagrode w postaci 1 z 3 itemow!
-Zostajesz przeteleportowany przed kamien na ktory kliknales!
-Gdy wykonasz wszystkie zadania musisz otrzymane ze skrzynek horkruksy zaniesc do oltarzu Thanatosa.
-Za wszystkie 3 horkrusky otrzymasz miecz Fergusa(49 ATK, 49 DEF + 2) - Fergus Sword
]]--
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.actionid == stones[6500] then
if getPlayerStorageValue(cid, stones[1].storage) > 1 then
setPlayerStorageValue(cid, stones[1].storage) == 1
doSendMagicEffect(toPosition, CONST_ME_STONES)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
doTeleportThing(cid, stones[1].teleport, FALSE)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
doSendMagicEffect(fromPosition, CONST_ME_MAGIC_RED)
else
doSendMagicEffect{getCreaturePosition(cid), CONST_ME_POOF)
doCreatureSay(cid, "Mission completed!", TALKTYPE_ORANGE_1)
return TRUE
end
elseif item.actionid == stones[6501] then
if getPlayerStorageValue(cid, stones[2].storage) > 1 then
setPlayerStorageValue(cid, stones[2].storage) == 1
doSendMagicEffect(toPosition, CONST_ME_STONES)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
doTeleportThing(cid, stones[2].teleport, FALSE)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
doSendMagicEffect(fromPosition, CONST_ME_MAGIC_RED)
else
doSendMagicEffect{getCreaturePosition(cid), CONST_ME_POOF)
doCreatureSay(cid, "Mission completed!", TALKTYPE_ORANGE_1)
return TRUE
elseif item.actionid == stones[6502] then
if getPlayerStorageValue(cid, stones[3].storage) > 1 then
setPlayerStorageValue(cid, stones[3].storage) == 1
doSendMagicEffect(toPosition, CONST_ME_STONES)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
doTeleportThing(cid, stones[3].teleport, FALSE)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
doSendMagicEffect(fromPosition, CONST_ME_MAGIC_RED)
else
doSendMagicEffect{getCreaturePosition(cid), CONST_ME_POOF)
doCreatureSay(cid, "Mission completed!", TALKTYPE_ORANGE_1)
return TRUE
end
end
end
return true
end
--[[
HORKRUKSY:
-Modern Hork
-
]]--
--[[
Koniec skryptu:
CREDITS:
- 9.1
- Enemy Spotted Guild for testing.
]]--