Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 07-19-2001, 07:00 AM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
Post more scripting help

(BTW thanx alot for helping me ncpserver scripting i really appreciate it i would bug someone else but i dun have anyone else to ask thats on enough 0.o you guys here in the forum are great : D )

ok my question is why won't this script work: (works fine offline 0.o)


if (peltwithbush){hidelocal;
say2 ahh thats gonan cost me;
playerrupees=playerrupees-2;
}
//#CLIENTSIDE
if (playerenters) {show;
message taylor;}
if (playertouchsme) {
hidelocal;
sleep 1;
showlocal;
}
  #2  
Old 07-19-2001, 07:03 AM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to Knightoffrost
Re: more scripting help

Quote:
Originally posted by Bravo_LAT-Admin
(BTW thanx alot for helping me ncpserver scripting i really appreciate it i would bug someone else but i dun have anyone else to ask thats on enough 0.o you guys here in the forum are great : D )

ok my question is why won't this script work: (works fine offline 0.o)


if (peltwithbush){hidelocal;
say2 ahh thats gonan cost me;
playerrupees=playerrupees-2;
}
//#CLIENTSIDE
if (playerenters) {show;
message taylor;}
if (playertouchsme) {
hidelocal;
sleep 1;
showlocal;
}
Um thats pretty simple.. i dont see why it wont work
__________________
Xerphier Dintch
Featuring
  #3  
Old 07-19-2001, 07:12 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Re: more scripting help

NPC Code:

//#CLIENTSIDE
if (peltwithbush){
hidelocal;
say2 ahh thats gonan cost me;
playerrupees-=2;
}
if (playerenters) {
show;
message taylor;
}
if (playertouchsme) {
hidelocal;
sleep 1;
showlocal;
}



all I did was orginize it better and made the clientside on top
__________________
Thanks,
-KJL
  #4  
Old 07-19-2001, 07:36 AM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
(o god i spelled gonna wrong lol *fixes*)

anywayz the only problem with making the whole thing clientside is that it doesn't take the 2 ruppes away : / and when i put that part of the script just serverside it doesn't do anything when pelt : /
  #5  
Old 07-19-2001, 10:51 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
well

see the thing is
peltwithbush

only works clientside I beleve...
mabie if you set a string or something...

otherwise I dont know how to work it...
__________________
Thanks,
-KJL
  #6  
Old 07-19-2001, 04:32 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
if (created) setshape 1,width,height;
__________________

  #7  
Old 07-19-2001, 06:09 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Yes peltwithbush is only clientside,
stuff like bombs, arrows and thrown
bushes are only accessible on client-side,
may be i need to add support on
server-side some day.

you could do something like

NPC Code:

if (created) {
setshape 1,32,32;
}
if (actionpelt) {
playerrupees+=2;
}
//#CLIENTSIDE
if (peltwithbush) {
triggeraction x+1,y+1,pelt;
}



But you must add more code, to make
sure the player really had the bush and is not
cheating/hacking.
  #8  
Old 07-19-2001, 09:35 PM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
ty

ok thanx i didn't think of doing it that way. for this script though i wouldn't have to use the exta code really though i dun think anyone would hack a bush to hit the door cause you lose money ;p i am just trying to make the town more interactive ya break the door you pay for it lol
  #9  
Old 07-19-2001, 10:40 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Re: ty

Quote:
Originally posted by Bravo_LAT-Admin
ok thanx i didn't think of doing it that way. for this script though i wouldn't have to use the exta code really though i dun think anyone would hack a bush to hit the door cause you lose money ;p i am just trying to make the town more interactive ya break the door you pay for it lol
lol

heh..
__________________
Thanks,
-KJL
  #10  
Old 07-25-2001, 11:00 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
And if they have no money they are sent to jail and raped by 10 big NPC jail mates =D
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
  #11  
Old 07-25-2001, 06:43 PM
Guest
Posts: n/a
and hitted by cops!!!
 


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 07:02 PM.


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