Quote:
Originally Posted by bscharff
My Server (playerworld141) Won't Let Me Get A Letter.
(I can grab the "join postoffice-getmail" thing all I want but I don't get any message or script flag on my attributes)
Also, the Script Compiler Gives Me Numerous Errors So It Won't Even Let Me Save class: mailbox
|
I tested it and it worked fine for me before I released it, can you tell us what the errors were?
Quote:
Originally Posted by Chompy
Post the errors?
Oh, and I think RW forgot the code for onActionGrabbed()
|
Yes if you dont have a triggerAction for when a player grabs something then add it somewhere.
PHP Code:
function onKeyPressed(code, key)
{
switch (temp.key)
{
case "a":
Grab();
break;
}
}
function Grab()
{
frontPosition = {player.x + 1.5 + vecx(player.dir) * 2, player.y + 1.5 + vecy(player.dir) * 2};
canGrab = (testplayer(frontPosition[0], frontPosition[1]) || testnpc(frontPosition[0], frontPosition[1]));
if (canGrab)
{
triggerAction(frontPosition[0], frontPosition[1], "Grabbed", player.account, player.guild);
}
}
onActionGrabbed(account, guild);