summaryrefslogblamecommitdiff
path: root/npc/functions/savepoint.txt
blob: ccf1b8b3ccfd7636cf157f0ca3070baf119e64ed (plain) (tree)
1
2
3
4
5
6
7
8
9
                  
          

               
                                     



                                   

                              
 
                                                 
                                                            
 

                                    
                              
     
                                              
                               
           
 
// Evol functions.
// Author:
//    Reid
// Description:
//    Adds a new save point location.
// Description:
//    Save location with arguments:
//      getarg(0)   map name,
//      getarg(1)   x's value,
//      getarg(2)   y's value,
//      getarg(3)   INN flag.

function	script	savepointparticle	{
    message strcharinfo(0), "Your position has been saved.";

    if (getarg(3, NO_INN) == NO_INN)
    {
        INN_REGISTER = NO_INN;
    }
    savepoint getarg(0), getarg(1), getarg(2);
    misceffect 4, getcharid(3);
    return;
}