PC_Gainexp
Akkarinage edited this page Nov 5, 2016
·
1 revision
Pages 190
Getting Started
- Installation instructions
- Transitioning from SVN to GIT
- Compiling on your OS
- Connecting & Starting rAthena
Configure your Server
- Scripting like a pro!
- Server Modifications and what to expect
- Database Configuration
Customization
- Adding Custom Items
- Adding Custom Monsters
- GRF Encryption
Setup the Client
- Data folder
- Diff files
Misc Databases
Third-Party Software
Clone this wiki locally
title: PC Gainexp permalink: /PC_Gainexp/
Function to gain EXP
int pc_gainexp(struct map_session_data *sd, struct block_list *src, unsigned int base_exp,unsigned int job_exp)
pc_gainexp(sd, bl, X, Y);
- sd = ? (Looks like only players can gain exp?)
- bl = ?
- X = Base XP
- Y = Job XP
Notes:
- pc_nextbaseexp(sd) = XP necessary for next Base Level UP
- pc_nextjobexp(sd) = XP necessary for next Job Level UP
pc_gainexp(sd, bl, pc_nextbaseexp(sd), Y);
This would be a FULL Base Lvlup, leaving with 0% on next level
pc_gainexp(sd, bl, 0, pc_nextjobexp(sd));
This would be a FULL Job Lvlup, leaving with 0% on next level