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 07-29-2002, 08:46 PM
Chaos1187p2p Chaos1187p2p is offline
Registered User
Join Date: Jun 2002
Posts: 50
Chaos1187p2p is on a distinguished road
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.
Reply With Quote
  #2  
Old 07-29-2002, 09:03 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
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; }
__________________
[signature]insert here[/signature]
Reply With Quote
  #3  
Old 08-01-2002, 05:48 AM
Chaos1187p2p Chaos1187p2p is offline
Registered User
Join Date: Jun 2002
Posts: 50
Chaos1187p2p is on a distinguished road
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;
}
}
Reply With Quote
  #4  
Old 08-02-2002, 02:52 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
that is one of the worst scripts i have ever seen

put together nasty
__________________
[signature]insert here[/signature]
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 06:10 AM.


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