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
  #46  
Old 10-16-2001, 11:18 AM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
wow lol
not hard to do at all i made a lumberjack script where the tree grows 5 stages.. using the server timevariable.
stage 1 gives 1 wood
stage 2 gieves 2 got point
after it gets to last stage after a while it dies. then after you cut it down when i dies you get 1 wood.
you have to buy seeds so plant the tree.

then there is a shed to store wood in you can set price ect. a lot more. thanx. rob. i would prefer not to post my script when they get very detailed

people like to steal scripts
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #47  
Old 10-16-2001, 11:11 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
This NPC is pretty lame but it shows how to do this b/s easily....

// NPC made by Josey Hunt
if (created){
dontblock;
drawoverplayer;
setimg goldball.png;
message Pushups NPC!;
}
if (playertouchsme&&!hasweapon(pushups)) {
toweapons pushups;
setstring pushups,0;
say2 You get 2 gralat for every#bpush up you do.#bThis is the easiest way#bto make money on Xitami!!#bCommands:Show pushups#bGet money. That's it.;
}
if (weaponfired) {
playerdir=2;
pushups();
i=strtofloat(#s(pushups))+1;
if (i==1000) {setstring pushups,max;
say2 You have done the#bmaximum amount of pushups#ballowed!#bSo cash in and start over!; }
setstring pushups,0;
setstring pushups,#v(i);
this.pushups=strtofloat(#s(pushups));
}
if (playerchats&&strequals(#c,show pushups)){
say2 You have done #s(pushups) pushup(s)!;
}
if (playerchats&&strequals(#c,Get money)&&strequals(#w,pushups)){
say2 Here is your money!;
this.rupees=strtofloat(#s(pushups))*2;
playerrupees+=this.rupees;
setstring pushups,0;
}
function pushups(){
disabledefmovement;
playersprite=14;
sleep .1;
playersprite=15;
sleep .1;
playersprite=16;
sleep .1;
playersprite=17;
sleep .1;
playersprite=18;
sleep .1;
playersprite=14;
sleep .1;
playersprite=15;
sleep .1;
playersprite=16;
sleep .1;
playersprite=17;
sleep .1;
playersprite=18;
sleep .1;
playersprite=14;
sleep .1;
playersprite=15;
sleep .1;
playersprite=16;
sleep .1;
playersprite=17;
sleep .1;
playersprite=18;
sleep .1;
playersprite=1;
setani idle,;
enabledefmovement;}
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #48  
Old 10-17-2001, 02:41 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Quote:
Originally posted by dragoonvenganc
wow lol
not hard to do at all i made a lumberjack script where the tree grows 5 stages.. using the server timevariable.
stage 1 gives 1 wood
stage 2 gieves 2 got point
after it gets to last stage after a while it dies. then after you cut it down when i dies you get 1 wood.
you have to buy seeds so plant the tree.

then there is a shed to store wood in you can set price ect. a lot more. thanx. rob. i would prefer not to post my script when they get very detailed

people like to steal scripts
AS I said... I made that real quick and What your saying is like me saying. I made Graal.
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #49  
Old 10-17-2001, 03:23 AM
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 Falcor
Oh and if you wanna make a variable public on Non-P2P

dont prefix it with this.
whats wrong with that?
Reply With Quote
  #50  
Old 10-17-2001, 07:09 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
This thread is getting out of control!
Attached Thumbnails
Click image for larger version

Name:	stefangive.gif
Views:	172
Size:	7.2 KB
ID:	6288  
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #51  
Old 10-17-2001, 09:52 AM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
lol..

and hey what do you mean

"AS I said... I made that real quick and What your saying is like me saying. I made Graal."
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #52  
Old 10-18-2001, 12:30 AM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
Hey rob if u read this again lol.

Sorry for jumping all over u.. yes if u typed it in this it is reasonable to make mistakes in your programming without debuging it.

From what u did u are pretty good.
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #53  
Old 10-18-2001, 02:30 AM
Birdbird_02 Birdbird_02 is offline
Registered User
Join Date: Jul 2001
Location: SCARYYTY BRHIN UR DBEAD!!
Posts: 62
Birdbird_02 is on a distinguished road
Here's my nooberific scriptar XD:
// NPC made by Glenn modified slightly by Tyne
//#CLIENTSIDE
//Cutting
if (actionCut && playerx>x-3 && playerx<x+8 && playery>y-4 && playery<y+10)
{
message #s(this.Cutted1)%;
setstring this.Cutted1,#v(strtofloat(#s(this.GCutted1))+5);
putleaps 0, x, y;
}else { setstring this.Cutted1,0; message 0%;}

if (strtofloat(#s(this.Cutted1))>105)
{
setplayerprop #c,Got Thingie Ma Bobby!;
setstring this.Cutted1,0;
setstring client.JPAM,#v(strtofloat(#s(client.JPAM))+1);
hide;
sleep 30;
show;
}
__________________
Glenn >=]
Reply With Quote
  #54  
Old 10-18-2001, 09:43 AM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
Time to analyze




//#CLIENTSIDE
<<< Dont u Need the npc weapon with trigger action u should of put the script for that 2.
<< also if using trigger action u should not need the playerx>x-3 and the rest. because it has it in it.
<< u are using trigger action right because u have actionCut
<< And so when they hit it.. if they miss at all then it restarts??

if (actionCut && playerx>x-3 && playerx<x+8 && playery>y-4 && playery<y+10)
{

<<< Why in the world would u use this. with strings has no relevince is not neccisary and is usless
<< if u have #v u do not need strtofloat.

message #s(this.Cutted1)%;
setstring this.Cutted1,#v(strtofloat(#s(this.GCutted1))+5);
putleaps 0, x, y;
}else { setstring this.Cutted1,0; message 0%;}

if (strtofloat(#s(this.Cutted1))>105)
{
setplayerprop #c,Got Thingie Ma Bobby!;
setstring this.Cutted1,0;
setstring client.JPAM,#v(strtofloat(#s(client.JPAM))+1);
hide;
sleep 30;
show;
}
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #55  
Old 10-19-2001, 02:26 AM
Birdbird_02 Birdbird_02 is offline
Registered User
Join Date: Jul 2001
Location: SCARYYTY BRHIN UR DBEAD!!
Posts: 62
Birdbird_02 is on a distinguished road
Quote:
Originally posted by dragoonvenganc
Time to analyze




//#CLIENTSIDE
<<< Dont u Need the npc weapon with trigger action u should of put the script for that 2.
<< also if using trigger action u should not need the playerx>x-3 and the rest. because it has it in it.
<< u are using trigger action right because u have actionCut
<< And so when they hit it.. if they miss at all then it restarts??

if (actionCut && playerx>x-3 && playerx<x+8 && playery>y-4 && playery<y+10)
{

<<< Why in the world would u use this. with strings has no relevince is not neccisary and is usless
<< if u have #v u do not need strtofloat.

message #s(this.Cutted1)%;
setstring this.Cutted1,#v(strtofloat(#s(this.GCutted1))+5);
putleaps 0, x, y;
}else { setstring this.Cutted1,0; message 0%;}

if (strtofloat(#s(this.Cutted1))>105)
{
setplayerprop #c,Got Thingie Ma Bobby!;
setstring this.Cutted1,0;
setstring client.JPAM,#v(strtofloat(#s(client.JPAM))+1);
hide;
sleep 30;
show;
}
The playerx,playery thing is there so if they leave it resets, it work's fine. Most of it is there because thats how I was taught.
__________________
Glenn >=]
Reply With Quote
  #56  
Old 10-20-2001, 03:20 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Quote:
Originally posted by dragoonvenganc
Hey rob if u read this again lol.

Sorry for jumping all over u.. yes if u typed it in this it is reasonable to make mistakes in your programming without debuging it.

From what u did u are pretty good.
Thx and sry too
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #57  
Old 10-20-2001, 10:43 AM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
Hey Super Sayin Rob
U up to anything i am looking for one more scripter for a rp server. We have most of the main stuff done but if i keep it up i will get burnt out.

We have done a hurting system have 76% of the 8 jobs done
and 38% of the 6 classes done.

If u are intersted email [email protected]
and if not just post.. lol
i can explain more if u email me.. i can not release it all to the public yet
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #58  
Old 10-22-2001, 03:46 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Quote:
Originally posted by dragoonvenganc
Hey Super Sayin Rob
U up to anything i am looking for one more scripter for a rp server. We have most of the main stuff done but if i keep it up i will get burnt out.

We have done a hurting system have 76% of the 8 jobs done
and 38% of the 6 classes done.

If u are intersted email [email protected]
and if not just post.. lol
i can explain more if u email me.. i can not release it all to the public yet
I am currently working on my server but I'll think about it.
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #59  
Old 10-22-2001, 09:20 AM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
That is perfectly fine. I just found out we got a new staff member he is a very good scripter if anyone knows goboom86..

Rob if u want just email me and i will give u info if not that is fine..
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
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:08 AM.


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