A few questions
Posted: Wed Jun 19, 2019 1:49 pm
Hello
A few days ago I started studying POL's documentation and scripting, Racalac's guide helped a lot, but a few questions remained.
First of all, CInt(). What the hell is it for? Im reading a script that says "cd = CInt(time/10) and can't understand what's the purpose in here. On Racalac's guide it only says "CInt(100.3) // Results in 100", I mean, it just return a value as an int?
Second, I'm having some issues with another part of this script. It's was not written by me, i'm just trying to debug, but I noticed a few errors. One is after you cast the spell, your weapon is supposed to change color and after the spell timer, it returns to the original color. But if the player logs out while the spell is still active, the weapon never changes back to it's original value.
Third. After the spell wears off, the damage bonus is still being applied, unless the player move the weapon from the hand layer. How am I supposed to make the value change after the timer is done, without forcing the player to move the weapon?
A lot of questions, hope someone can help me. Thanks!
A few days ago I started studying POL's documentation and scripting, Racalac's guide helped a lot, but a few questions remained.
First of all, CInt(). What the hell is it for? Im reading a script that says "cd = CInt(time/10) and can't understand what's the purpose in here. On Racalac's guide it only says "CInt(100.3) // Results in 100", I mean, it just return a value as an int?
Second, I'm having some issues with another part of this script. It's was not written by me, i'm just trying to debug, but I noticed a few errors. One is after you cast the spell, your weapon is supposed to change color and after the spell timer, it returns to the original color. But if the player logs out while the spell is still active, the weapon never changes back to it's original value.
Third. After the spell wears off, the damage bonus is still being applied, unless the player move the weapon from the hand layer. How am I supposed to make the value change after the timer is done, without forcing the player to move the weapon?
A lot of questions, hope someone can help me. Thanks!