Aller au contenu

Photo

Giving XP?


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

#1
J.O.G

J.O.G
  • Members
  • 355 messages
Am I blind or is there no other way to give XP than setting a plot flag?

So if I want to give out a variable amount of XP I'd have to make several plot flags and edit rewards.2da?

Modifié par J.O.G, 30 novembre 2009 - 06:37 .


#2
Sunjammer

Sunjammer
  • Members
  • 925 messages
Experience is a property so you can get it using the GetCreatureProperty function and the PROPERTY_SIMPLE_EXPERIENCE constant.  So in theory you should be able to increase it using SetCreatureProperty though I haven't tested it.

I'll do some more digging to see if there is a more obvious way.

Modifié par Sunjammer, 30 novembre 2009 - 06:58 .


#3
Sunjammer

Sunjammer
  • Members
  • 925 messages
 You can use RewardXP from sys_rewards_h (which does use SetCreatureProperty).

#4
J.O.G

J.O.G
  • Members
  • 355 messages
Thanks!

Edit:
Ha! In there is also the evidence that the Memory Band indeed works.
But only when you actually get more than 100XP at once.
Enchantment!:wizard:

Modifié par J.O.G, 30 novembre 2009 - 08:21 .