Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Script doesn't work now (https://forums.graalonline.com/forums/showthread.php?t=75473)

PrinceOfKenshin 07-14-2007 09:34 PM

Script doesn't work now
 
This is part of a script from the NPC server on Atrius and it stop working after the new version of graal came out
PHP Code:

function onPM(frommessage) {
  
from player.account;
  
temp.pl findplayer(from);
  if (
message.starts("/setpin")) {
    
temp.pin message.substring(8);
    if (
abs(int(temp.pin)) == temp.pin) {
      if (
temp.pin != NULL) {
        
temp.pl.clientr.pin abs(int(temp.pin));
        
temp.pl.sendpm("Success! Your ATM PIN number has been reset to:" SPC temp.pin);
      } else 
temp.pl.sendpm("Your PIN cannot be 0!");
    } else 
temp.pl.sendpm("Your PIN is not a whole real number!");
  }




xXziroXx 07-15-2007 05:20 AM

I'm guessing onPM() no longer works, I heard of other PM related commands not working. Stefan is most likely aware of it by now.


All times are GMT +2. The time now is 05:12 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.