Author Topic: Easy to script class restrictions?  (Read 519 times)

Legacy_Rolo Kipp

  • Hero Member
  • *****
  • Posts: 4349
  • Karma: +0/-0
Easy to script class restrictions?
« Reply #75 on: October 09, 2011, 12:44:32 am »


               <slowly gaining...>

ShaDoOoW wrote...
...before you set XP to the PC back you should use delay (I used 0.3) as otherwise character can get bugged and the level up button wont appear while XPs are correct.


...So instead of GiveXPToCreature(100) use SetXP(GetXP()+100); with this you can easily add your own adjustments.

Those are both good tips. :-)

Thank You, Shadow.

<...experience where it matters>
               
               

               
            

Legacy_SuperFly_2000

  • Hero Member
  • *****
  • Posts: 1292
  • Karma: +0/-0
Easy to script class restrictions?
« Reply #76 on: October 09, 2011, 11:20:23 pm »


               Personally I like the ol' "giveXPtocreature". Call me old-fashioned....but especially the thingie about it having built in XP reduction for multiple classes appeals to me.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Easy to script class restrictions?
« Reply #77 on: October 10, 2011, 01:09:51 am »


               

SuperFly_2000 wrote...

Personally I like the ol' "giveXPtocreature". Call me old-fashioned....but especially the thingie about it having built in XP reduction for multiple classes appeals to me.


I agree with you on this.  Still you have to keep in mind that the Give XP functions do have the XP reduction built in.   So if your goal is to set the XP back to what they had before deleveling, You do not want to use the GiveXP functions.