![]() |
Quote:
// 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 } |
Very simple
|
This has gotte WAY more complicated then need be.
|
Oh and if you wanna make a variable public on Non-P2P
dont prefix it with this. |
True lol
|
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 |
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;} |
Quote:
|
Quote:
|
1 Attachment(s)
This thread is getting out of control!
|
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." |
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. |
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; } |
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; } |
Quote:
|
Quote:
|
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 |
Quote:
|
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.