Quote:
Originally Posted by Astram
Sorry for asking, but I don't really understand your main script too much. If you could explain how I could use this in removing a players weapon I'd be glad. Basically I just don't know where to put this chunk of script :P.
|
After the player object is found/loaded:
PHP Code:
function onCreated() {
// Load Player
temp.acct = "fowlplay4";
temp.pl = findplayer(acct);
temp.offline = temp.pl == NULL;
temp.pl = temp.offline ? new TServerPlayer(@acct) : temp.pl;
// Manipulate player object...
temp.pl.removeweapon("Weapon Name");
// Save and destroy
if (temp.offline) {
temp.pl.saveaccount();
temp.pl.destroy();
}
}