Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   One Last Script (https://forums.graalonline.com/forums/showthread.php?t=53762)

MegaSizzler 07-14-2004 10:05 PM

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?

WanDaMan 07-14-2004 10:07 PM

if(compusdied){
hide;
sleep3;
show;
}

xManiamaNx 07-14-2004 10:08 PM

Download Dach/Chad's commands.rtf

See:
putnpc2
addweapon

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

MegaSizzler 07-14-2004 10:09 PM

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?

MegaSizzler 07-14-2004 10:42 PM

Someone Please give me a correct script!

calum 07-14-2004 10:58 PM

Why not try...
NPC Code:

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


LordMatt 07-14-2004 11:04 PM

What server are you trying to make this for?

Silver Knight 07-14-2004 11:13 PM

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.

Python523 07-15-2004 02:07 AM

You aren't helping yourself, this is a help forum, not a "request things you can't make" forum


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

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