Demo Code
Batlin - http://forums.uosecondage.com/viewtopic.php?f=11&t=9786 wrote:Code: Select all
// handle poison duration Q5JF --; if(Q5JF < 0x01) { systemMessage(this, "The poison seems to have worn off."); Q660(this); return(0x00); }
Batlin - http://forums.uosecondage.com/viewtopic.php?f=11&t=9786 wrote:Code: Select all
// handle poison duration Q5JF --; if(Q5JF < 0x01) { systemMessage(this, "The poison seems to have worn off."); Q660(this); return(0x00); }
Faust wrote:Did a few tests (not extensively) and seemed like there was no duration on poison with it lasting forever. Would this be the case here or is the delay just significantly long? What is it even suppose to be and is it tiered per poison level?
Demo CodeBatlin - http://forums.uosecondage.com/viewtopic.php?f=11&t=9786 wrote:Code: Select all
// handle poison duration Q5JF --; if(Q5JF < 0x01) { systemMessage(this, "The poison seems to have worn off."); Q660(this); return(0x00); }
Code: Select all
strength = getObjVar(this, "poison_strength");
setPoisoned(this, 0x01);
Q4R0 = 0x0F;
Q5JB(this, strength);
Q5JF = (random(0x0A, 0x14) * strength);
callBack(this, Q4R0, 0x53);
Code: Select all
mobile = this;
strength = getObjVar(mobile, "poison_strength");
setPoisoned(mobile, true);
Q4R0 = 15;
Q5JB(mobile, strength);
Q5JF = (random(10, 20) * strength);
callBack(mobile, Q4R0, 83);