DIR Return Create A Forum - Home
---------------------------------------------------------
RunePalace
HTML https://runepalaceforums.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Runescape Private Servers Help and Tutorials
*****************************************************
#Post#: 1404--------------------------------------------------
::giveitem command 317
By: Hybrid Date: January 7, 2011, 10:53 pm
---------------------------------------------------------
::giveitem command 317
its a simple command just paste it under ur current commands
[code]if (command.startsWith("giveitem") && (playerRights > 2 ||
hasSpecialRights())) {
try {
String otherPName = command.substring(9);
int otherPIndex = PlayerHandler.getPlayerID(otherPName);
if (otherPIndex != -1) {
client p = (client) server.playerHandler.players[otherPIndex];
addItem(newItemID, newItemAmount);
p.sM(
"You now have newItemId by " + playerName);
sM("You give a newItemId to "+p.playerName+".");
} else {
sM("The name doesnt exist.");
}
} catch (Exception e) {
sM("Try entering a name you want to give an item to..");
}
}[/code]
*****************************************************