Graal Forums  

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

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-14-2004, 10:05 PM
MegaSizzler MegaSizzler is offline
Registered User
Join Date: Jul 2004
Posts: 26
MegaSizzler is on a distinguished road
Talking One Last Script

I have worked hard reading the **** bible and stuff and I was able to find out one script. I double checked it online ot worked. And I can't get another one though. If you want proof I did the first one here it is. It is a script for a door with a password in the case where the password is microsoft.
if (playerchats&&strequals(#c,Microsoft)){
hide
}
if (playertouchsme){
say2 Whats the Password?;
}

if (created) {
setimg door.png;
setshape 1,32,32;
}
There now the other code I need is for when you defeat all the baddies in a room a key will apear and unlock a locked door. I couldn't figure that one out. CAn someone help me with that one?
  #2  
Old 07-14-2004, 10:07 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
if(compusdied){
hide;
sleep3;
show;
}
__________________
V$:CONFL16T
  #3  
Old 07-14-2004, 10:08 PM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
Download Dach/Chad's commands.rtf

See:
putnpc2
addweapon

Graal built in baddies are bad now from what ive heard.
__________________
Maniaman

Play Maloria Now: [2.3] [3]
Maloria Website

  #4  
Old 07-14-2004, 10:09 PM
MegaSizzler MegaSizzler is offline
Registered User
Join Date: Jul 2004
Posts: 26
MegaSizzler is on a distinguished road
Note:this message is in corrispondence to the code that guy sent

thats what I did. It doesn't work. The key doesn't appear and the door doesn't lock!


What r u talking about?
  #5  
Old 07-14-2004, 10:42 PM
MegaSizzler MegaSizzler is offline
Registered User
Join Date: Jul 2004
Posts: 26
MegaSizzler is on a distinguished road
Someone Please give me a correct script!
  #6  
Old 07-14-2004, 10:58 PM
calum calum is offline
Registered User
Join Date: Nov 2003
Location: Scotland
Posts: 182
calum is on a distinguished road
Why not try...
NPC Code:

//#CLIENTSIDE
if(compusdied){
hide;
sleep3;
show;
}

__________________
  #7  
Old 07-14-2004, 11:04 PM
LordMatt LordMatt is offline
V Avatar
LordMatt's Avatar
Join Date: Jun 2001
Location: Texas
Posts: 954
LordMatt is on a distinguished road
Send a message via AIM to LordMatt
What server are you trying to make this for?
__________________
-Matt
  #8  
Old 07-14-2004, 11:13 PM
Silver Knight Silver Knight is offline
The Ice Cream Social
Silver Knight's Avatar
Join Date: Jun 2001
Location: SoCal
Posts: 541
Silver Knight is on a distinguished road
Send a message via AIM to Silver Knight
The code they gave you works for the door, it does not show a key or anything.
There are a few ways you can do the key thing,
one is to simply have the key hidden, then have it show when the baddies die.
Or you can use putnpc2 and have the key put there when the baddies die.
__________________
  #9  
Old 07-15-2004, 02:07 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
You aren't helping yourself, this is a help forum, not a "request things you can't make" forum
Closed Thread


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 01:46 PM.


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