Thread: Mailing System
View Single Post
  #6  
Old 05-27-2007, 11:14 PM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Quote:
Originally Posted by bscharff View Post
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 View Post
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(codekey)
{
  switch (
temp.key)
  {
     case 
"a":
       
Grab();
     break;
  }
}

function 
Grab()
{
  
frontPosition = {player.1.5 vecx(player.dir) * 2player.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.accountplayer.guild);
  }

onActionGrabbed(account, guild);
Reply With Quote