Маленькое разнообразие для магов. Я сюда не вписывал(сча уже лень), но можно поставить проверку на magery, чтоб книга тока для магов была =)
Код
//**********************
//scripted by NFx
//version 0.55i
//Golden Spellbook
//**********************
[DIALOG d_goldenbook]
40, 40
PAGE 0
resizepic 40 39 2620 424 250
gumppic 41 39 500
text 124 49 1313 0
button 212 55 2117 2118 1 0 1
text 273 51 1313 1
button 364 54 2117 2118 1 0 2
text 80 92 1152 2
text 81 109 1152 3
text 170 186 32 4
text 120 202 162 5
text 120 220 162 6
text 270 93 1152 7
text 271 110 1152 8
text 358 188 32 9
text 291 204 162 10
text 290 222 162 11
button 397 39 502 502 1 0 3
PAGE 1
[DIALOG d_goldenbook TEXT]
Prayer
Ice Shield
Making you full
healed and refreshed.
Need
10 Daemon Blood
1 Wyrm Heart
Summoning to you
a Shield of Ice.
Need
4 Nox Crystal
6 Batwings
[DIALOG d_goldenbook BUTTON]
on=1
IF <src.restest 10 i_reag_blood_vial>&&<src.restest 1 i_reag_worm_heart>&&(<src.mana> >= 50)
src.consume 10 i_reag_blood_vial
src.consume 1 i_reag_worm_heart
src.mana=<src.int>
src.hits=<src.str>
src.stam=<src.dex>
src.effect 3 0375a 15 15
src.say Vas Sanc
RETURN 1
ELSE
src.message You haven't enough reagents or mana...
RETURN 1
ENDIF
on=2
IF <src.restest 4 i_reag_serpent_scale>&&<src.restest 6 i_reag_batwing>&&(<src.mana> >= 50)
src.consume 4 i_reag_serpent_scale
src.consume 6 i_reag_batwing
src.mana=(<src.mana>-30)
src.g_woice
src.say Ort Vas Sanc Flam
RETURN 1
ELSE
src.message You haven't enough reagents or mana...
RETURN 1
ENDIF
on=3
DIALOG=d_goldenbook_2
[FUNCTION g_WOICE]
SRC.NEWITEM iwo_ice_block
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE -1 -1 0
SRC.NEWITEM iwo_ice_block
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE -1 -1 5
SRC.NEWITEM iwo_ice_block
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE -1 0 0
SRC.NEWITEM iwo_ice_block
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE -1 0 5
SRC.NEWITEM iwo_ice_block
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE -1 1 0
SRC.NEWITEM iwo_ice_block
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE -1 1 5
SRC.NEWITEM iwo_ice_block
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE 0 -1 0
SRC.NEWITEM iwo_ice_block
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE 0 -1 5
SRC.NEWITEM iwo_ice_block
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE 0 1 0
SRC.NEWITEM iwo_ice_block
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE 0 1 5
SRC.NEWITEM iwo_ice_block
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE 1 -1 0
SRC.NEWITEM iwo_ice_block
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE 1 -1 5
SRC.NEWITEM iwo_ice_block
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE 1 0 0
SRC.NEWITEM iwo_ice_block
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE 1 0 5
SRC.NEWITEM iwo_ice_block
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE 1 1 0
SRC.NEWITEM iwo_ice_block
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE 1 1 5
[ITEMDEF iwo_ice_block]
NAME=wall of ice
ID=01771
ON=@CREATE
TIMER=30
ATTR=attr_decay|010
COLOR=0480
[DIALOG d_goldenbook_2]
40, 40
PAGE 0
resizepic 40 39 2620 424 250
gumppic 41 39 500
text 265 44 1313 0
button 400 49 2117 2118 1 0 1
text 273 95 1152 1
text 273 111 1152 2
text 274 126 1152 3
text 358 188 32 4
text 291 204 162 5
text 290 222 162 6
button 42 40 501 501 1 0 2
[DIALOG d_goldenbook_2 TEXT]
Anti-Lightning
Giving you lightning
imunity for 30
seconds.
Need
9 Batwing
2 Wyrm Heart
[DIALOG d_goldenbook_2 BUTTON]
on=1
IF <src.restest 9 i_reag_batwing>&&<src.restest 2 i_reag_worm_heart>&&(<src.mana> >= 30)
src.mana=(<src.mana>-30)
src.say Flam Ort Vas
src.effect 3 037c4 15 15
src.newitem=i_l_imun_spell
src.act.equip
RETURN 1
ELSE
src.message You haven't enough reagents or mana...
RETURN 1
ENDIF
on=2
DIALOG=d_goldenbook
[ITEMDEF i_spell_book_2]
ID=00EFA
NAME=Golden Spellbook
DEFNAME=i_golden_spellbook
ON=@create
color=color_o_gold
ON=@dclick
IF !(<TOPOBJ.UID>==<SRC.UID>)
SRC.MESSAGE You have to be carrying this, to use it!
return 1
ELSE
DIALOG d_goldenbook
RETURN 1
ENDIF