mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-30 17:49:20 +02:00
implement screaming spellbook in rook to skip rook and get first items
This commit is contained in:
parent
d506b1c89a
commit
51c4d22aa8
@ -5,6 +5,16 @@ function onUse(player, item, fromPosition, target, toPosition, isHotkey)
|
||||
item:getPosition():sendMagicEffect(CONST_ME_HITBYFIRE)
|
||||
player:say('OUCH!', TALKTYPE_MONSTER_SAY)
|
||||
player:addExperience(4200 - player:getExperience())
|
||||
|
||||
player:addItem(3355,1)
|
||||
player:addItem(3361,1)
|
||||
player:addItem(3559,1)
|
||||
player:addItem(3552,1)
|
||||
player:addItem(3412,1)
|
||||
player:addItem(3273,1)
|
||||
player:addItem(3031,25)
|
||||
player:addItem(3582,3)
|
||||
player:addItem(3003,1)
|
||||
end
|
||||
|
||||
return true
|
||||
|
@ -3,4 +3,5 @@
|
||||
<globalevent type="startup" name="ServerStartup" script="startup.lua"/>
|
||||
<globalevent type="record" name="PlayerRecord" script="record.lua"/>
|
||||
<globalevent name="Server Save" time="08:55:00" script="serversave.lua" />
|
||||
<globalevent name="Rookgaard Book" interval="5000" script="rookgaard_book.lua"/>
|
||||
</globalevents>
|
||||
|
16
data/globalevents/scripts/rookgaard_book.lua
Normal file
16
data/globalevents/scripts/rookgaard_book.lua
Normal file
@ -0,0 +1,16 @@
|
||||
local text = {
|
||||
"Grrr!",
|
||||
"<click>",
|
||||
"Shhh!",
|
||||
"I SMELL FEEEEAAAAAR!",
|
||||
"CHAMEK ATH UTHUL ARAK!",
|
||||
"469",
|
||||
"LET ME OUT!",
|
||||
"Sacrifice!",
|
||||
"More! More!"
|
||||
}
|
||||
|
||||
function onThink(interval, lastExecution)
|
||||
Position({x=32095, y=32216, z=7}):sendMonsterSay(text[math.random(#text)])
|
||||
return true
|
||||
end
|
@ -13895,7 +13895,7 @@ Flags = {Take,Expire,ShowDetail}
|
||||
Attributes = {Weight=80,SlotType=RING,HealthTicks=2000,HealthGain=1,ManaTicks=2000,ManaGain=1,ExpireTarget=0,TotalExpireTime=450,DeEquipTarget=3098}
|
||||
|
||||
TypeID = 3101
|
||||
Name = "a spellbook"
|
||||
Name = "a screaming spellbook"
|
||||
Description = "To humble, or not to humble, that is the question"
|
||||
Flags = {Unmove,Unlay,Unthrow,Unpass,UseEvent}
|
||||
Attributes = {Weight=5800}
|
||||
|
Loading…
x
Reference in New Issue
Block a user