Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 08:01 AM.


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