https://www.rune-server.ee/runescape...-any-base.html
have you followed these instructions? ^ If so, what are you having an issue with?
|
Hi, can anyone help me set up motivote so players can claim votes automatically
https://www.rune-server.ee/runescape...-any-base.html
have you followed these instructions? ^ If so, what are you having an issue with?
It's saying put code in files which i don't have, I'm kinda new to making rsps so sorry if this is something really simple I'm missing
Code:case "home": if (Wilderness.isAtWild(player) || player.isInDung()) { player.sm("<col=00FF00>Running away? HOLDUP!, not so fast!"); return true; } else Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3182,5713,0)); player.getPackets().sendGameMessage("<col=00FF00><img=1> Welcome Home <img=1>"); return true;
okay I need one more thing, somewhere you'll find something like "Switch (command) {" or "Switch (fullcommand) {" You can most likely find it by just searching for "Switch" as there's probably only one occurrence of that. I need whatever is within the parenthesis after the switch. it is Case sensitive
edit: nvm that works perfect
all i could find is this, is this the right thing?
teletome commandCode:switch (cmd[0]) {
Code:case "teletome": if (!player.hasStaffPin) { player.getTemporaryAttributtes().put("banning_security", Boolean.TRUE); player.getPackets().sendRunScript(108, new Object[] { "Please enter your security pin"}); } else { name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); target = World.getPlayerByDisplayName(name); if (Wilderness.isAtWild(player) || Wilderness.isAtWild(target) || player.isInDung() || target.isInDung()) { player.sm("Nice try"); return true; } if(target == null) player.getPackets().sendGameMessage( "Couldn't find player " + name + "."); else target.setNextWorldTile(player); } return true;
yea that's perfect. give me a sec and I'll tell you what to do once I write it down (via editting this post)
Search for:
above it paste in the following:Code:case "home":
let me know how it goesCode:case "redeem": String auth = cmd[1]; boolean success = motivote.redeemVote(auth); if (success) { player.getInventory().add(995, 1000000); // replace 995, 1000000 with 19670, 1 to give a vote scroll instead of cash. player.getPacketSender().sendMessage("Auth redeemed, thanks for voting!"); } else { player.getPacketSender().sendMessage("Invalid auth supplied, please try again later."); } break;
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |