So I need a script, dont know that if is creaturescript or globalevent but i want like:
I have roshamuul quest on server, i want that the Altar tasks, that one you use silencer excretion on a altar and summon a guzzlemaw... that quest set storagevalue as (ROSHAMUUL_WALL_ALTAR) I want to when that storagevalue is 250(Count as global(all players storage count for this amount) = then worldchange active, after the server save, the map open the stairs for mawhawk and he spawns each 1 hour...
here's the silencer excretion(item) script
Sorry for bad english i'm brazilian
I have roshamuul quest on server, i want that the Altar tasks, that one you use silencer excretion on a altar and summon a guzzlemaw... that quest set storagevalue as (ROSHAMUUL_WALL_ALTAR) I want to when that storagevalue is 250(Count as global(all players storage count for this amount) = then worldchange active, after the server save, the map open the stairs for mawhawk and he spawns each 1 hour...
here's the silencer excretion(item) script
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if (target == nil) or not target:isItem() then
return false
end
if (target:getId() == 5016) then
item:remove()
target:transform(5017)
game:createMonster("Guzzlemaw", toPosition)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Dessecrating their altar will most likely demoralise the Frazzlemaws, making them very angry in the process.")
player:setStorageValue(ROSHAMUUL_WALL_ALTAR, math.max(0, player:getStorageValue(ROSHAMUUL_WALL_ALTAR)) + 1)
target:decay()
end
return true
end
if (target == nil) or not target:isItem() then
return false
end
if (target:getId() == 5016) then
item:remove()
target:transform(5017)
game:createMonster("Guzzlemaw", toPosition)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Dessecrating their altar will most likely demoralise the Frazzlemaws, making them very angry in the process.")
player:setStorageValue(ROSHAMUUL_WALL_ALTAR, math.max(0, player:getStorageValue(ROSHAMUUL_WALL_ALTAR)) + 1)
target:decay()
end
return true
end
Sorry for bad english i'm brazilian
Last edited: