-
Item operate problem?
I have this in itemoperate. I'm making my own little newbie preach :D
Code:
case 3844:
p.requestForceChat("May you walk the path, and never fall,
p.requestForceChat("For Guthix walks beside thee on thy journey.");
p.requestForceChat("May Guthix bring you peace.");
p.requestAnim(5864, 0);
break;
How do I make it say:
May you walk the path... First
For Guthix walks beside.... Second
May Guthix bring you.... Third?
How would you do that?
-
put this in item operate after the switch
Code:
case 3844:
p.requestForceChat("May you walk the path, and never fall,");
p.requestForceChat("For Guthix walks beside thee on thy journey.");
p.requestForceChat("May Guthix bring you peace.");
p.requestAnim(5864, 0);
break;
-
xBPx, that is what he did, he is asking how to make the words come separate.
Ontopic: All you have to do is this:
1) Go to player.java and declare this:
Code:
public int preachTimer = 2;
2) While in player.java, search for "process()" and right under that put this:
Code:
if (preachTimer != 0) preachTimer--;
3) Replace your old case for this:
Code:
case 3844:
p.requestAnim(5864, 0);
p.requestForceChat("May you walk the path, and never fall,");
if (p.preachTimer == 0) {
p.requestForceChat("For Guthix walks beside thee on thy journey.");
p.preachTimer = 2;
}
if (p.preachTimer == 0) {
p.requestForceChat("May Guthix bring you peace.");
p.preachTimer = 2;
}
break;
This isn't tested, but I'm pretty sure it will work :)
Regards,
Brandon
-
-
-
It just says one. Not all of them one after the other.
-
Which one does it say? The last one?
-