![]() |
Mining ....
Here is some cheap mining stuff i made ... its very primitive and may not work but use it as you please ... its my first uses of triggeraction ...
on the hammer/axe: // NPC made by Nyght v3.5 if (playersays(get axe)){toweapons Test Axe} if (weaponfired) { setani jaxe,hammergold.png; triggeraction playerx+1.5+vecx(playerdir)*2, playery+2+vecy(playerdir)*2,mining,#v(axepower); } and on the rock(s): // NPC made by Nyght v3.2 if (actionmining) { axepower = strtofloat(#p(0)); this.power -= axepower; if (this.power<=1) { setstring uncraftedgold,#v(strtofloat(#s(uncraftedgold))+1); hide;putleaps 2,x,y;timeout=10; } } if (timeout){show } just if your gonna use em let me know so i can check em out on your server/player world project if or when it may go up .... |
Ummmm!
thats almost the exact same script that you find in the newfeatures2001.txt file in your graal directory its not the original :asleep: |
lol
|
Hee hee
|
ROFL
|
Quote:
|
Quote:
|
I made a really screwed up version of Lumber Jacking because I didn't know how to use Triggeraction yet. Anyone wanna see it? ;)
|
i do lol
-freaky- |
Triggeraction? Never heard of it............ :megaeek:
:sigh: I need to check the command list again......... -Rebel001 |
I'll put my script on later :o
|
I made a fully working mining script without triggerationand without strings too! The only thing that doesn't work is the selling. :(
|
Well i made lol
i made a lumberjack and minning script.. lumberjack plants tree in time the tree grows has 5 dif growth stages.. you can cut down at any stage.. but the bigger the more wood i checked the player gani and x and y to do.. selling works it works. and minning have bunch of rocks you blow one up and it lays rocks .. same stuff as lumberjack it works.. i am tring to use trigger action cant get it to work .. it would make script shorter.. he he mine work.. good.. you can sell and trade so on.. |
I can't get my Triggeraction to work either
|
Quote:
|
I happen to think that's a very nice basic example.
pretty. |
rock script
here it is
if (created) { this.step = 6; updateimg(); } if (playerenters) { setcharani jrockfall,1; blockagain; sleep 2; this.step = 0; updateimg(); } function updateimg() { setcharani jrock,#v(this.step+1); if (this.step=6) dontblock; else { blockagain; drawunderplayer; } } if (hitbyaxe && random(0,1)<6) { ownerexists = false; this.hitterid = save[0]; gethitter(); if (hitter=0)with (players[hitter]){strength = strtofloat(#s(client.axestrength)); setstring client.axestrength,; if (strength=1) ownerexists = true; } if (ownerexists==true) { this.step++; updateimg(); if (this.step==6) { gethitter(); if (hitter=0) with (players[hitter]) { if (this.type==1) setstring uncrafteddiamond,#v(strtofloat(#s(uncrafteddiamond ))+1); else if (this.type==2) setstring uncrafteddurby,#v(strtofloat(#s(uncrafteddurby))+1 ); else if (this.type==3) setstring uncraftedgold,#v(strtofloat(#s(uncraftedgold))+1); else if (this.type==4) setstring uncraftediron,#v(strtofloat(#s(uncraftediron))+1); setani jgotgem,#v(4+this.type); freezeplayer2; } sleep 2; gethitter(); if (hitter=0) with (players[hitter]) { unfreezeplayer; } } } } function gethitter() { hitter = -1; for (i=0; i<playerscount; i++) if (players[i].id==this.hitterid) { hitter = i; break; } } |
Re: rock script
Quote:
|
he might have gotten it when graal had the debugger error
|
Quote:
|
Quote:
|
no
|
Quote:
|
Quote:
|
delete
delete this thread please !!!!
|
its getting annoying
its getting annoying
|
this thread is good for people who wanted to do the mining thing
|
hmmm ...
Quote:
|
Re: hmmm ...
Quote:
|
listen ....
if you dont completely understand this then just IM me at nyght2k1 and i'll explain but please dont use this unless you know what all the parts do and so on .....
|
| All times are GMT +2. The time now is 04:13 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.