Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help needed with editing various scripts. (https://forums.graalonline.com/forums/showthread.php?t=34594)

Chaos1187p2p 07-29-2002 08:46 PM

Help needed with editing various scripts.
 
ok for the first one. i have this gate see and i have two questions for it. is there any way to do this with out using server tags. like so if i touch the switch and it will hide and if i touch another it will show. 2nd question for the gate. ok here is my gate script (just the gate not the switches) i want it so that it has life so in other words it can be destroyed.

"if(playerenters)
{ timereverywhere;
setgif ccgate2.gif; blockagain;
if(save[0]==0) { show; }
else { hide; } } if(timeout)
{ hearts=hearts+0.5; timeout=3; }
if(exploded||wasshot)
{ hearts=hearts-1; message #v(hearts);
if(hearts=0) { show; message; } timeout=3; }
if(opendoor) { save[0]=1; hide; }
if(closedoor)
{ save[0]=0; show; }



hearts= 25"

for my 2nd script,
it is sopposed to be if hte player dies (with out a guild tag) then they shall be warped to a new room. such as the following

"if(playerdies) { if(strlen(#guild name)==0) { setlevel2 ccdungeon.graal,49,56; } }"
for some reason it does not work.
sorry to make two threads but the other was closed before i could correct it.

screen_name 07-29-2002 09:03 PM

Xx, use the [ code ] bbcode

and dont run lines on and on

cut em up by commands

if (bla) {
bla;
bla;
}


not if (bla) { bla; bla; }

Chaos1187p2p 08-01-2002 05:48 AM

ah i got this script from some one but im not sure what to do to it to make it work x.x so maybe a lil help? just replace stuff maybe like for were to put the guild name just put guild name and were it wants an account name just put aco**** name and such here it is




if (created){
setimg bigcow.gif;
}
if (playerchats && (strcontains(#n,Leader) || strcontains(#n,Tag Maker) || strcontains(#n,Co-Leader)) || strequals(#a,darkfire2045) || strequals(#g,Admin)) {
tokenize #c;
if (tokenscount>=2 && strcontains(add remove list,#t(0))) {
if (strequals(#t(0),add) && tokenscount>=3) {
if (tokenscount=3){
if(strequals(#g,#t(1)) || strequals(#g,Admin) || strequals(#a,darkfire2045)){
removeguildmember #t(1),#t(2);
message Guild tag removed;
}else if(!strequals(#g,#t(1))){
message Nice try slim;
}
}
}else if (playerchats &&! (strcontains(#n,Leader) || strcontains(#n,Tag Maker)) && (strcontains(#c,add) || strcontains(#c,remove))) {
message Sorry, you're not authorized, son;
}
}

screen_name 08-02-2002 02:52 AM

that is one of the worst scripts i have ever seen

put together nasty


All times are GMT +2. The time now is 06:21 AM.

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