TheCrasH Posted November 27, 2010 Author Share Posted November 27, 2010 Hi Everyone.I need little but serious problem.This stat thing screw my brain.**Call SetPlayerPOINTS(Index, GetPlayerPOINTS(Index) + 10)**I make this value +10 but it isnt giving +10stat points when a player levels up.Sorry for my bad English.Thanks. Link to comment Share on other sites More sharing options...
Yxxe Posted November 27, 2010 Share Posted November 27, 2010 @TheCrasH:> Hi Everyone.> I need little but serious problem.> This stat thing screw my brain.> > **Call SetPlayerPOINTS(Index, GetPlayerPOINTS(Index) + 10)**> I make this value +10 but it isnt giving +10stat points when a player levels up.> > Sorry for my bad English.> Thanks.Did you include it in Sub LevelUp / LevelUp.ess? (or whatever it's called) Link to comment Share on other sites More sharing options...
TheCrasH Posted November 27, 2010 Author Share Posted November 27, 2010 @Lightning:> @TheCrasH:> > > Hi Everyone.> > I need little but serious problem.> > This stat thing screw my brain.> > > > **Call SetPlayerPOINTS(Index, GetPlayerPOINTS(Index) + 10)**> > I make this value +10 but it isnt giving +10stat points when a player levels up.> > > > Sorry for my bad English.> > Thanks.> > Did you include it in Sub LevelUp / LevelUp.ess? (or whatever it's called)Yeah I included it.>! Sub PlayerLevelUp(Index)Dim PlayerExp>! If GetPlayerExp(Index) < GetPlayerNextLevel(Index) ThenExit SubEnd If>! Do While GetPlayerExp(Index) >= GetPlayerNextLevel(Index)PlayerExp = GetPlayerNextLevel(Index)>! Call SetPlayerLevel(Index, GetPlayerLevel(Index) + 1)Call SetPlayerPOINTS(Index, GetPlayerPOINTS(Index) + 10)Call SetPlayerExp(Index, GetPlayerExp(Index) - PlayerExp)Call SetPlayerHP(Index, GetPlayerMaxHP(Index))Call SetPlayerMP(Index, GetPlayerMaxMP(Index))Call SetPlayerSP(Index, GetPlayerMaxSP(Index))Call SendPlayerData(Index)Call SendStats(Index)Call SendHP(Index)Call SendMP(Index)Call SendSP(Index)Call SendPTS(Index)Loop>! Call BattleMsg(Index, "You have " & GetPlayerPOINTS(Index) & " stat points.", BRIGHTBLUE, LEFT)End Sub Link to comment Share on other sites More sharing options...
TheCrasH Posted November 27, 2010 Author Share Posted November 27, 2010 Please I need your helps. Link to comment Share on other sites More sharing options...
TheCrasH Posted November 28, 2010 Author Share Posted November 28, 2010 I need answers Link to comment Share on other sites More sharing options...
TheCrasH Posted November 28, 2010 Author Share Posted November 28, 2010 I am waiting answer for 1 day. Link to comment Share on other sites More sharing options...
Robin Posted November 28, 2010 Share Posted November 28, 2010 @TheCrasH:> I am waiting answer for 1 day.Oh God no! Perish the thought of actually having some patience. Link to comment Share on other sites More sharing options...
TheCrasH Posted November 28, 2010 Author Share Posted November 28, 2010 I am sorry :sad:I have lack of patience. Link to comment Share on other sites More sharing options...
Ruins of Hell Posted November 28, 2010 Share Posted November 28, 2010 Did you reload your scripts (/reload or reboot the server), is scripting turned on (Scripting=1 in data.ini). Link to comment Share on other sites More sharing options...
TheCrasH Posted November 28, 2010 Author Share Posted November 28, 2010 Really thanks dude. ;D Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now