Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   % done (https://forums.graalonline.com/forums/showthread.php?t=14521)

SSRobgeta 10-16-2001 07:34 AM

Quote:

Originally posted by dragoonvenganc
now you total idiot pay attetion

//Created by Rob Getashu
if (exploded && this.bombed<=4){
this.bombed++;
message #v(this.bombed/4*100)% <<<<<HERE you need ;
if (this.bombed=4) {
setcharani stone_open,#s(this.bugsprite);
sleep 2;
setcharani stone_idle,#s(this.bugsprite);
sleep 2;
setcharani stone_close,#s(this.bugsprite);
sleep 2;
setcharani stone_closed,;
setstring bugs,#v(strtofloat(#s(bugs))+1);
}
}
with out that ; it keeps thinking you are saying text.
i dint try the program on my computer. I am not that stupid i know i do not have the gani.

and i ran a mile last year in 7:06 thanx.

Just to prove I can script better this this *****. I made a Lumber Jacking Script. :D
// Created By Rob Getashu
if (created) {
showcharacter;
setcharani appletree4,
}
if (actionlumberjacking && this.lumberhit<=100){
this.lumberhit++;
message #v(this.lumberhit/100*100)%
}
if (this.lumberhit=20) {
setcharani appletreecut,
}
if (this.lumberhit=100) {
setstring lumber,#v(strtofloat(#s(lumber))+3);
setani lumber,;
sleep .5;
hide;
say2
Wow this is valueable #b
lumber!#b
You now have #s(lumber).;
this.lumberhit=0
}

SSRobgeta 10-16-2001 07:35 AM

Very simple

Falcor 10-16-2001 08:14 AM

This has gotte WAY more complicated then need be.

Falcor 10-16-2001 08:14 AM

Oh and if you wanna make a variable public on Non-P2P

dont prefix it with this.

SSRobgeta 10-16-2001 08:16 AM

True lol

dragoonvenganc 10-16-2001 11:18 AM

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

joseyisleet 10-16-2001 11:11 PM

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

SSRobgeta 10-17-2001 02:41 AM

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.

btedji 10-17-2001 03:23 AM

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?

SSRobgeta 10-17-2001 07:09 AM

1 Attachment(s)
This thread is getting out of control!

dragoonvenganc 10-17-2001 09:52 AM

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

dragoonvenganc 10-18-2001 12:30 AM

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.

Birdbird_02 10-18-2001 02:30 AM

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

dragoonvenganc 10-18-2001 09:43 AM

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

Birdbird_02 10-19-2001 02:26 AM

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.

SSRobgeta 10-20-2001 03:20 AM

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

dragoonvenganc 10-20-2001 10:43 AM

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

SSRobgeta 10-22-2001 03:46 AM

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.

dragoonvenganc 10-22-2001 09:20 AM

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


All times are GMT +2. The time now is 03:29 PM.

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