Originally Posted by
Expand
you need to put it in a place that draws it every frame.
Thanks for this reply hopefully i can find out not that skilled at client side yet so it's difficult to find out
EDIT: This is what i got so far... https://gyazo.com/dde0313abc196396d6f4b3937b4e1bdc still not the best but i could find out but its weird still how it goes
Code:
private void startSpinner() {
RSInterface w = RSInterface.interfaceCache[13101];
RSInterface w2 = RSInterface.interfaceCache[13200];
RSInterface rewardInt = RSInterface.interfaceCache[13300];
RSInterface rewards = RSInterface.interfaceCache[13303];
if(w.anInt263 >= -1000) {
w.anInt263 -= 25;
w2.anInt263 -= 25;
pushMessage("Spin begin!", 0, "");
}
if(w.anInt263 >= -1912 && w.anInt263 <= -1001) { //w.anInt263 >= -1912 && w.anInt263 <= -1001
w.anInt263 -= (25 / spinSpeed);
w2.anInt263 -= (25 / spinSpeed);
spinSpeed = spinSpeed + 0.07f;
pushMessage("Spin second line!", 0, "");
}
if(w.anInt263 >= -2000 && w.anInt263 < -1913) {
w.anInt263 -= (25 / spinSpeed);
w2.anInt263 -= (25 / spinSpeed);
spinSpeed = spinSpeed + 2f;
pushMessage("Spin middle line!", 0, "");
}
if(w.anInt263 <= -1913) {
rewardInt.isMouseoverTriggered = false;
amountValue += (w2.invStackSizes[51] * ItemDef.forID((w2.inv[51]) - 1).value);
RSInterface.interfaceCache[13019].disabledMessage = Integer.toString(amountValue);
RSInterface.interfaceCache[13305].disabledMessage = ItemDef.forID((w2.inv[51]) - 1).name.replaceAll("_", " ");
rewards.inv[0] = w2.inv[51];
rewards.invStackSizes[0] = w2.invStackSizes[51];
startSpin = false;
pushMessage("Spin ends!", 0, "");
}
}
It just go from spin begin to second line and than to stop so the anim still looks bit weird