[DiscordArchive] What does that do exactly in c++?
[DiscordArchive] What does that do exactly in c++?
Archived author: Foe • Posted: 2022-06-14T14:27:11.643000+00:00
Original source
What does that do exactly in c++?
Archived author: Revision • Posted: 2022-06-14T14:27:22.767000+00:00
Original source
I gets the set values loaded from worldserver.conf
Archived author: Foe • Posted: 2022-06-14T14:28:08.147000+00:00
Original source
Oh, for config stuff, I don't think we ever exposed that to the Lua engine but you can make a function to read the config file with file io i guess
Archived author: Foe • Posted: 2022-06-14T14:28:24.053000+00:00
Original source
I did expose it for a previous project I worked on, but never really used it much
Archived author: Revision • Posted: 2022-06-14T14:28:32.154000+00:00
Original source
for instance I grab sWorld->getRate(RATE_XP_KILL) and I can run sWorld->setRate(RATE_XP_KILL, rateExperienceKill) where rateExperienceKill is from getRate multiplied by whatever value you set in the modules config. I do this instead of running on the triggers when earning exp etc
Archived author: Foe • Posted: 2022-06-14T14:29:12.811000+00:00
Original source
Wouldn't that set the rate for every single player in that case?
Archived author: Foe • Posted: 2022-06-14T14:29:19.071000+00:00
Original source
I guess that might be intentional
Archived author: Foe • Posted: 2022-06-14T14:29:58.727000+00:00
Original source
Personally I did on XP hooks, but we had player defined variable xp
Archived author: Revision • Posted: 2022-06-14T14:30:04.339000+00:00
Original source
Yes, that was what I wanted. It's my weekend bonus module, and it also sets reputation, money earned, weapon and defense skill ups aswell as professions rates. It's just easier than trying to figure out for instance how to modify the money earned.
Archived author: Revision • Posted: 2022-06-14T14:30:41.917000+00:00
Original source
It's not the end of the world, I was just curious if it was possible right now.