summaryrefslogblamecommitdiff
path: root/world/map/npc/items/shock_sweet.txt
blob: bbb7ac53f04b66fd7910bfc211284af94507794d (plain) (tree)
1
2
3
4
5
6
7
8
9
                             
 

                                                          


                                                             
                            
           

         
                                                    
                                                               
                              
                                  
           
 
function|script|useShockSweet
{
    if (getmap() == "099-5")
        addtimer 0, "Xakelbael the Dark#0::OnAdjustSweet";
    if (rand(5))
        goto L_Change;
    message strcharinfo(0), "Yuck, this tastes like earwax!";
    heal -20 - (Hp >> 2), 0;
    return;

L_Change:
    setlook LOOK_HAIR_COLOR, (HC_WHITE - Class) + 1;
    message strcharinfo(0), "Gah! That was some strong stuff!";
    sc_start SC_POISON, 1, 20;
    misceffect 15, strcharinfo(0);
    return;
}