Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions scripts/edana/barwench.script
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
{
repeatdelay $randf(30,45)

if game.time > NEXT_HELLO
if $cansee(player,128)

saytext Hello there.
Expand All @@ -77,6 +78,8 @@
say [.3] [.3] [.3] [.2] [.1] [.3] [.1]
callevent convo_anim
setmovedest PARAM1 9999
setvard NEXT_HELLO game.time
add NEXT_HELLO 60

local L_GOT_SOUP $get_quest_data(VENDOR_TARGET,sy)
if L_GOT_SOUP > 0
Expand Down Expand Up @@ -108,6 +111,33 @@
//token.add GAVE_SOUP_LIST2 L_PLR_STEAMID
}

{ game_menu_getoptions

local reg.mitem.title "Order Soup"
local reg.mitem.type payment
local reg.mitem.data "health_spotion;drink_mead;mana_mpotion;health_apple:3;gold:200"
local reg.mitem.callback give_soup
local reg.mitem.cb_failed soup_price
menuitem.register
}

{ give_soup

offer PARAM1 mana_soup
helptip PARAM1 generic "Sylphiel's Soup" "Provides full health and three minutes of rapid mana regeneration"
setmovedest PARAM1 9999
playanim once push_button
saytext One bowl of Sylphee's soup, fresh off the fire. Enjoy!
callevent convo_anim
}

{ soup_price

setmovedest PARAM1 9999
saytext Soup's not free, love. Bring me a strong health potion, a mead, a mana potion, three apples and 200 gold.
callevent convo_anim
}

{
eventname trade_success

Expand Down Expand Up @@ -277,6 +307,7 @@

{ game_gave_player //<player> <item>
if $get(PARAM2,itemname) contains soup
if $get_quest_data(PARAM1,sy) > 0
if game.time > NEXT_THANK_YOU
setvard NEXT_THANK_YOU game.time
add NEXT_THANK_YOU 60.0
Expand Down
2 changes: 1 addition & 1 deletion scripts/items/armor_venom.script
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

local POISON_DMG $get(ent_owner,skill.spellcasting.affliction)
multiply POISON_DMG 0.5
applyeffect PARAM1 effects/dot_poison 10.0 $get(ent_owner,id) POISON_DMG spellcasting.poison
applyeffect PARAM1 effects/dot_poison 10.0 $get(ent_owner,id) POISON_DMG spellcasting.affliction
playsound 0 10 bullchicken/bc_bite2.wav //monsters/snake_idle1.wav

playermessage Your Venom Plate poisons $get(PARAM1,name.full)
Expand Down