Darkstox
Been Blazing
- Joined
- Sep 26, 2008
- Messages
- 37
- Reaction score
- 2
was looking for some help on making my script for task bosses a daily instead of task to kill.
Here is my server info..
This is my current task boss script..
movements.xml
any input will be greatly appreciated!
Here is my server info..
This is my current task boss script..
Code:
function onStepIn(cid, item, pos)
local config = {
bosspos = {
{x=33260,y=31705,z=15}, -- position where stonecracker first spawns
},
boss = "stonecracker", -- name of the boss
}
local thais = {x=33260, y=31696, z=15}
local thaiss = {x=33252, y=31718, z=14}
if item.actionid == 16351 and getPlayerStorageValue (cid, 16752) == 1 and getPlayerStorageValue (cid, 16754) == -1 then
doTeleportThing(cid,thais)
doSendMagicEffect(getCreaturePosition(cid),10)
doCreatureSay(cid, 'You have ten minutes to kill and loot this boss, else you will lose that chance and will be kicked out.', TALKTYPE_ORANGE_1)
doPlayerSetStorageValue (cid, 16754, 1)
doSummonCreature(config.boss, config.bosspos[1])
elseif getPlayerStorageValue (cid, 16752) == -1 then
doTeleportThing(cid,thaiss)
doCreatureSay(cid, 'You did not complete the task Quest!', TALKTYPE_ORANGE_1)
else
doTeleportThing(cid,thaiss)
doCreatureSay(cid, 'You already had a chance to kill Stonecracker.', TALKTYPE_ORANGE_1)
end
return 1
end
movements.xml
Code:
<movevent type="StepIn" actionid="16351" event="script" value="task/stonecracker.lua"/>
any input will be greatly appreciated!