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 12-04-2001, 10:15 AM
fireball_dolphonia fireball_dolphonia is offline
Registered User
Join Date: Sep 2001
Location: Graalistan
Posts: 73
fireball_dolphonia is on a distinguished road
Unhappy Help!

ok i need help with something
how do i make like
a bridge in the dustari castle when u say bridge down
it coems down and u can walk over water??
__________________

ages.ccs.com/ccsimages/cat_
Reply With Quote
  #2  
Old 12-04-2001, 10:25 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
thats what i wanna know
Reply With Quote
  #3  
Old 12-04-2001, 12:24 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
here:
NPC Code:

NPC Code:

if (playerchats) {
if (streqauls(#g,Dustari) && strcontains(#c,bridge down)) {
show;
}
}
if (playerchats) {
if (streqauls(#g,Dustari) && strcontains(#c,bridge up)) {
hide;
}
}
|==================|
or you could use gif's ...
|==================|
if (playerchats) {
if (streqauls(#g,Dustari) && strcontains(#c,bridge down)) {
setimg gatedown.gif;
}
}
if (playerchats) {
if (streqauls(#g,Dustari) && strcontains(#c,bridge up)) {
setimg gateup.gif;
}
}




dont know if they work just made em up on here ... they should ...
Reply With Quote
  #4  
Old 12-04-2001, 02:49 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
*laughs*

I was trying to solve this one a while ago as well.

I never really did.

But using attachplayer seems to be in order. but im prabably just going way overboard.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #5  
Old 12-04-2001, 08:01 PM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by nyghtGT
here:
NPC Code:

NPC Code:

if (playerchats) {
if (streqauls(#g,Dustari) && strcontains(#c,bridge down)) {
show;
}
}
if (playerchats) {
if (streqauls(#g,Dustari) && strcontains(#c,bridge up)) {
hide;
}
}
|==================|
or you could use gif's ...
|==================|
if (playerchats) {
if (streqauls(#g,Dustari) && strcontains(#c,bridge down)) {
setimg gatedown.gif;
}
}
if (playerchats) {
if (streqauls(#g,Dustari) && strcontains(#c,bridge up)) {
setimg gateup.gif;
}
}




dont know if they work just made em up on here ... they should ...
that woiuldnt work if there was blocking tiles for laggers
Reply With Quote
  #6  
Old 12-04-2001, 08:26 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by nyghtGT
here:
NPC Code:

NPC Code:

if (playerchats) {
if (streqauls(#g,Dustari) && strcontains(#c,bridge down)) {
show;
}
}
if (playerchats) {
if (streqauls(#g,Dustari) && strcontains(#c,bridge up)) {
hide;
}
}
|==================|
or you could use gif's ...
|==================|
if (playerchats) {
if (streqauls(#g,Dustari) && strcontains(#c,bridge down)) {
setimg gatedown.gif;
}
}
if (playerchats) {
if (streqauls(#g,Dustari) && strcontains(#c,bridge up)) {
setimg gateup.gif;
}
}




dont know if they work just made em up on here ... they should ...
that would show and hide, but you wouldnt be able to walk across it
Reply With Quote
  #7  
Old 12-05-2001, 09:00 PM
-_Soulhunter_- -_Soulhunter_- is offline
Registered User
Join Date: Nov 2001
Location: Near my computer :D
Posts: 154
-_Soulhunter_- is on a distinguished road
Quote:
Originally posted by nyghtGT
here:
NPC Code:

NPC Code:

if (playerchats) {
if (streqauls(#g,Dustari) && strcontains(#c,bridge down)) {
show;
}
}
if (playerchats) {
if (streqauls(#g,Dustari) && strcontains(#c,bridge up)) {
hide;
}
}
|==================|
or you could use gif's ...
|==================|
if (playerchats) {
if (streqauls(#g,Dustari) && strcontains(#c,bridge down)) {
setimg gatedown.gif;
}
}
if (playerchats) {
if (streqauls(#g,Dustari) && strcontains(#c,bridge up)) {
setimg gateup.gif;
}
}




dont know if they work just made em up on here ... they should ...
It would be cooler to have it.. so u see it moving not just pop up
__________________
Name on Graal - Ferret
Server - Andor, Babylon
Coolest tag - Events Admin
Reply With Quote
  #8  
Old 12-06-2001, 10:25 AM
fireball_dolphonia fireball_dolphonia is offline
Registered User
Join Date: Sep 2001
Location: Graalistan
Posts: 73
fireball_dolphonia is on a distinguished road
me haev one of moving just that u cant walk oevr water
__________________

ages.ccs.com/ccsimages/cat_
Reply With Quote
  #9  
Old 12-06-2001, 10:49 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Use setshape
Reply With Quote
  #10  
Old 12-06-2001, 10:59 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
attachpplayertoobj id,type;

use move to move the bridge and use setshape2 to define walls.
__________________

subliminal message: 1+1=3
Reply With Quote
  #11  
Old 12-06-2001, 11:45 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
I was right.
attachplayer was in order!
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #12  
Old 12-06-2001, 12:51 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
attachplayertoobj;

ok.

i suggest, as rogue that you use attachplayertoobj, i used it on my boat, and its fairly simple. all you have to do is make sure to set the shape, and than at the end have like a blocking time and than.
NPC Code:

if (playertouchsme&&playerdir==2) {detachplayer;}


i love attachplayertoobj...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #13  
Old 12-08-2001, 01:09 AM
WeirdmanI9 WeirdmanI9 is offline
Banned
WeirdmanI9's Avatar
Join Date: Mar 2001
Location: Laying Low From The Police
Posts: 1,816
WeirdmanI9 is on a distinguished road
Send a message via AIM to WeirdmanI9 Send a message via Yahoo to WeirdmanI9
Use a bridge gif, and then to keep you from falling off the edge when walking acorss you can change all of the side tiles to tiles that block, then change them back to the original tiles when you are done. It's that simple, if you know how to update tiles, but if you don't, here it is

board[x*y]=tilesx*tilesy;
updateboard x,y,updatex,updatey;

Do that for all of the tiles and save the original tiles in a this. string to call them up later on.
Reply With Quote
  #14  
Old 12-08-2001, 01:41 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
what would be really cool is to liki have the tiles sorta fly accross the screen making the bridge ... that would be kool ...
Reply With Quote
  #15  
Old 12-08-2001, 01:57 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by WeirdmanI9
board[x*y]=tilesx*tilesy;
updateboard x,y,updatex,updatey;
Wrong.
NPC Code:
board[x+y*64] = tilesx+tilesy*16;
updateboard x,y,with,height;

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 03:06 PM.


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