Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Advance Level Quest Function
SUBMITTED BY:
tuaavolol
DATE:
May 1, 2016, 7:14 p.m.
FORMAT:
C++
SIZE:
353 Bytes
Raw
Download
Tweet
HITS:
20184
Go to comments
Report
int
pc_advance_level
(
lua_State
*
L
)
{
LPCHARACTER
ch
=
CQuestManager
::
instance
().
GetCurrentCharacterPtr
();
if
(
!
lua_isnumber
(
L
,
1
))
{
sys_err
(
"QUEST : pc_advance_level wrong argument"
);
return
0
;
}
int
level
=
(
int
)
lua_tonumber
(
L
,
1
);
ch
->
ResetPoint
(
MINMAX
(
0
,
level
,
PLAYER_MAX_LEVEL_CONST
));
return
1
;
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus