Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help Me Please Dear Lord Help! (https://forums.graalonline.com/forums/showthread.php?t=3699)

05-28-2001 10:04 AM

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.

General 05-28-2001 11:29 AM

NPC Code:

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


freddyfox 05-28-2001 11:36 AM

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;
}


LiquidIce00 05-28-2001 12:47 PM

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;
}

fugitive316 05-28-2001 12:49 PM

This is why I never post Gscript heh, there always seems to be someone who will come up with better scripts.

Er1c 05-29-2001 05:23 AM

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.

Er1c 05-29-2001 05:28 AM

Ok, I clicked the wrong forum... :D


All times are GMT +2. The time now is 07:16 PM.

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