Aller au contenu

Photo

Easy to script class restrictions?


  • Veuillez vous connecter pour répondre
77 réponses à ce sujet

#76
Rolo Kipp

Rolo Kipp
  • Members
  • 2 788 messages
<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>

#77
SuperFly_2000

SuperFly_2000
  • Members
  • 1 004 messages
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.

#78
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages

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.