Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-12-2011, 08:35 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
open and closable level

hey, i know most of you got annoyed because i was asking for scripts that were wayyy above my scripting level, so iv decided to stick to easier things for now, basicly what iv tried to make is a door that if u write /open and your account is allowed to it will alloe you to enter the level when you touch it but if the account writes /close it closes it and you cant enter the level..
here is what i have so far..
the account and /open and /close work
but i cant get the if playertouchsme bit to work..
as for the player.chat once i get it working il change that to setlevel2("level.nw",30,30);

PHP Code:
function onPlayerChats(){
  if (
player.account == "Graal780374"){
    if (
player.chat == "/open"){
      
this.chat = "Secret Room Is Open!";
      if (
playertouchsme){
        
player.chat = "open";
      }
    }
    if (
player.chat == "/close"){
      
this.chat = "Secret Room Is Closed!";
    }
    if (
playertouchsme){
      
player.chat = "closed";
    }
  }
} 
Any Help Your Willing TO Give Is Much Appreciated
Thanks
-Gunderak
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 11:02 PM.


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