Welcome to AC Web.
Results 1 to 7 of 7
  1. #1

    Double Xp weekends


    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Is there an event id for this or does this have to be done manually?

  2. #2

  3. #3
    Okay, is that something coded into the source or just change the exp rates in the files and restart the server?

  4. #4
    change exp rate in world config type .reload config in core or in game no need to restart but can if that is what you choose to do

  5. #5
    Okay awesome! thank you very much i appreciate it

  6. #6
    Ofc it is possible just make a player script with the following

    PHP Code:
    static bool isWeekend(){
        
    time_t timer time(NULL);
        
    tmtimePtr localtime(&timer);

        switch (
    timePtr->tm_wday){
        default:
            return 
    false;
            break;
        case 
    0//sunday
            
    return true;
            break;
        case 
    5//friday
            
    return true;
            break;
        case 
    6//saturday
            
    return true;
            break;
        }
        
        
    //returning false if something gone wrong
        
    return false;
    }

    void OnGiveXP(Playerplayeruint32amountUnit/*victim*/) {
    //note this function is called before the core apply the the XP and amount represent the final XP value a player receive
            
    uint32 rate 1;
            if (
    isWeekend())
                
    rate 2;
            
    amount amount rate;
        } 

  7. #7

    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Thank you for the insight!

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •