mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-11-28 07:36:50 +01:00
Almost finish Summoner and Mage outfit quest
This commit is contained in:
@@ -156,6 +156,7 @@
|
||||
<action itemid="3059" script="misc/spellbook.lua" />
|
||||
<action fromid="5792" toid="5797" script="misc/dice.lua" />
|
||||
<action itemid="3114" script="misc/skull_candle.lua" />
|
||||
<action itemid="5957" script="misc/lottery_ticket.lua" />
|
||||
|
||||
<!-- Dolls -->
|
||||
<action itemid="5080" script="misc/dolls.lua" />
|
||||
|
||||
12
data/actions/scripts/misc/lottery_ticket.lua
Normal file
12
data/actions/scripts/misc/lottery_ticket.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
|
||||
if math.random(100) == 1 then
|
||||
player:getPosition():sendMagicEffect(CONST_ME_SOUND_YELLOW)
|
||||
player:say("Congratulations! You won a prize!", TALKTYPE_MONSTER_SAY)
|
||||
item:transform(5958)
|
||||
else
|
||||
player:getPosition():sendMagicEffect(CONST_ME_POFF)
|
||||
player:say("Sorry, but you drew a blank.", TALKTYPE_MONSTER_SAY)
|
||||
item:remove(1)
|
||||
end
|
||||
return true
|
||||
end
|
||||
Reference in New Issue
Block a user