Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-26-2009, 05:39 PM
OiRodgar OiRodgar is offline
Registered User
OiRodgar's Avatar
Join Date: Jan 2005
Posts: 23
OiRodgar is on a distinguished road
Door-Script

Hi there! I'm trying to script a door that only the account OiRodgar can open with the command /open. Tried a few things but it won't work...

PHP Code:
// NPC made by unknown
//#CLIENTSIDE
function onCreated()

{
  
this.account="OiRodgar";
}
{
  if(
player.account==this.account)
    {
    function 
onPlayerchats()

    {
      if(
player.chat=="/open")

      {
        
hide();
      }
    }
  }

Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:06 AM.


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