Thread: Mining ....
View Single Post
  #1  
Old 09-25-2001, 10:25 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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 ....
Reply With Quote