Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-28-2001, 10:04 AM
Guest
Posts: n/a
Exclamation Help Me Please Dear Lord Help!

Um ok so heres teh Problem I need it so this NPC disspears when a guild member of this guild touchs Example : Statue in the the way if a Samurai guild member touchs it it dissapears for like 5 seconds then comes back.
Reply With Quote
  #2  
Old 05-28-2001, 11:29 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
NPC Code:

if (playerenters) show;
if (playertouchsme && strequals(#g,GuildName)) {
hide;
sleep 3;
show;
}

Reply With Quote
  #3  
Old 05-28-2001, 11:36 AM
freddyfox freddyfox is offline
Banned
freddyfox's Avatar
Join Date: Mar 2001
Posts: 6,705
freddyfox is on a distinguished road
Quote:
Originally posted by General
NPC Code:

if (playerenters) show;
if (playertouchsme && strequals(#g,GuildName)) {
hide;
sleep 3;
show;
}

Actually, it should be,

NPC Code:

if (playerenters) show;
if (playertouchsme && strequals(#g,GuildName)) {
hidelocal;
dontblocklocal;
sleep 3;
showlocal;
blockagainlocal;
}

Reply With Quote
  #4  
Old 05-28-2001, 12:47 PM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
actually ... this is better... it can lose its values when u leave/enter..


if (playerenters) { showlocal; blockagainlocal; }

if (playertouchsme && strequals(#g,GuildName)) {
hidelocal;
dontblocklocal;
sleep 3;
showlocal;
blockagainlocal;
}
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #5  
Old 05-28-2001, 12:49 PM
fugitive316 fugitive316 is offline
Scalper Chill
fugitive316's Avatar
Join Date: Mar 2001
Location: Allentown, PA
Posts: 1,792
fugitive316 is on a distinguished road
Send a message via ICQ to fugitive316 Send a message via AIM to fugitive316 Send a message via Yahoo to fugitive316
This is why I never post Gscript heh, there always seems to be someone who will come up with better scripts.
__________________
AKA KEVIN

Shaded Legend Manager
http://shaded-legend.com
Reply With Quote
  #6  
Old 05-29-2001, 05:23 AM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
Your all wrong if this is for a server with an NPC Server.
NPC Code:

//#CLIENTSIDE
if (playerenters) {
showlocal;
}
if (playertouchsme) {
if (strequals(#g,GUILD_NAME)) {
hidelocal;
timeout = 3;
} else {
message Your not in this guild!;
}
}
if (timeout)
showlocal;


When something is hidden it automatically stops blocking the player.
__________________
Eric Kraft
Reply With Quote
  #7  
Old 05-29-2001, 05:28 AM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
Ok, I clicked the wrong forum...
__________________
Eric Kraft
Reply With Quote
Reply


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 08:54 PM.


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