Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   more scripting help (https://forums.graalonline.com/forums/showthread.php?t=7616)

Bravo_LAT-Admin 07-19-2001 07:00 AM

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

Knightoffrost 07-19-2001 07:03 AM

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

KJS 07-19-2001 07:12 AM

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

Bravo_LAT-Admin 07-19-2001 07:36 AM

(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 : /

KJS 07-19-2001 10:51 AM

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...

grim_squeaker_x 07-19-2001 04:32 PM

if (created) setshape 1,width,height;

Admins 07-19-2001 06:09 PM

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.

Bravo_LAT-Admin 07-19-2001 09:35 PM

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:D

KJS 07-19-2001 10:40 PM

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:D
lol :cool:

heh..

ownerofbabylon 07-25-2001 11:00 AM

And if they have no money they are sent to jail and raped by 10 big NPC jail mates =D

07-25-2001 06:43 PM

and hitted by cops!!!


All times are GMT +2. The time now is 09:00 AM.

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