Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old 09-25-2001, 04:46 PM
sqar sqar is offline
Registered User
Join Date: Sep 2001
Posts: 14
sqar is on a distinguished road
Ummmm!
thats almost the exact same script that you find in the newfeatures2001.txt file in your graal directory
its not the original
__________________
- Ultima Hunter

I Do-Not, I Repeat, I Do-Not Own This Account!! - Ultima Hunter
Reply With Quote
  #3  
Old 09-25-2001, 08:38 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
lol
__________________

-=Shard IceFire=-
Reply With Quote
  #4  
Old 09-25-2001, 09:17 PM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Hee hee
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #5  
Old 09-25-2001, 09:20 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
ROFL
__________________

-=Shard IceFire=-
Reply With Quote
  #6  
Old 09-26-2001, 02:12 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
Quote:
Originally posted by sqar
Ummmm!
thats almost the exact same script that you find in the newfeatures2001.txt file in your graal directory
its not the original
they have a mining script in the newfeatures.txt???
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #7  
Old 09-26-2001, 02:15 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Quote:
Originally posted by ownerofbabylon


they have a mining script in the newfeatures.txt???
Stefan put like a little vecx vecy example .. and its kinda like that
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #8  
Old 09-26-2001, 04:01 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
I made a really screwed up version of Lumber Jacking because I didn't know how to use Triggeraction yet. Anyone wanna see it?
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #9  
Old 09-26-2001, 04:56 AM
SSj_Link SSj_Link is offline
Registered User
Join Date: Jul 2001
Location: i r live in texas
Posts: 244
SSj_Link is on a distinguished road
Send a message via ICQ to SSj_Link Send a message via AIM to SSj_Link
i do lol


-freaky-
__________________
-People with my Password: Me (Boozy), Ghostface Killa, bgraven, Freaky Carnie, Dark Warlock, and SoulReaver.
-So they can all post.-

-I hate my account name -

~Old Names: Link, Darklink, Neo, then Boozy when Bravo died. (So some people will recognize me)~

AIM: boozyneo
ICQ: 116030736
Msn: [email protected]
Email: [email protected]


-DANCE SPAM DANCE!- Dark Warlock
Reply With Quote
  #10  
Old 09-26-2001, 06:33 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
Question

Triggeraction? Never heard of it............
:sigh: I need to check the command list again.........

-Rebel001
Reply With Quote
  #11  
Old 09-26-2001, 06:21 PM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
I'll put my script on later :o
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #12  
Old 09-26-2001, 06:44 PM
toad1413 toad1413 is offline
toad@graal:~$ ./Oldbie
Join Date: May 2001
Location: Aust.
Posts: 3,819
toad1413 is on a distinguished road
Send a message via ICQ to toad1413
I made a fully working mining script without triggerationand without strings too! The only thing that doesn't work is the selling.
__________________
Creator of the original 'spam' icon. Worst mistake I ever made on these forums.
Reply With Quote
  #13  
Old 09-26-2001, 09:03 PM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
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..
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #14  
Old 10-01-2001, 12:54 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
I can't get my Triggeraction to work either
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #15  
Old 10-01-2001, 04:08 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
Quote:
Originally posted by Kaimetsu


And you too should shorten your sig.
That would help :o
Reply With Quote
  #16  
Old 10-01-2001, 11:58 PM
SagaTCN SagaTCN is offline
Registered User
Join Date: Aug 2001
Location: West Michigan
Posts: 190
SagaTCN is on a distinguished road
Send a message via ICQ to SagaTCN Send a message via AIM to SagaTCN Send a message via Yahoo to SagaTCN
I happen to think that's a very nice basic example.

pretty.
__________________

Rogue World
Reply With Quote
  #17  
Old 10-02-2001, 02:18 AM
fireball_dolphonia fireball_dolphonia is offline
Registered User
Join Date: Sep 2001
Location: Graalistan
Posts: 73
fireball_dolphonia is on a distinguished road
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; } }
__________________

ages.ccs.com/ccsimages/cat_
Reply With Quote
  #18  
Old 10-02-2001, 02:39 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Re: rock script

Quote:
Originally posted by fireball_dolphonia
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; } }
I bet thats the 2001 script and someone sold it to you
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #19  
Old 10-02-2001, 03:08 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
he might have gotten it when graal had the debugger error
Reply With Quote
  #20  
Old 10-02-2001, 03:11 AM
fireball_dolphonia fireball_dolphonia is offline
Registered User
Join Date: Sep 2001
Location: Graalistan
Posts: 73
fireball_dolphonia is on a distinguished road
Quote:
Originally posted by btedji
he might have gotten it when graal had the debugger error
:grrr: no i didnt theres a page where u get mostly all scripts of g2k1
__________________

ages.ccs.com/ccsimages/cat_
Reply With Quote
  #21  
Old 10-02-2001, 03:18 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by fireball_dolphonia
:grrr: no i didnt theres a page where u get mostly all scripts of g2k1
zorg online?
Reply With Quote
  #22  
Old 10-02-2001, 03:32 AM
fireball_dolphonia fireball_dolphonia is offline
Registered User
Join Date: Sep 2001
Location: Graalistan
Posts: 73
fireball_dolphonia is on a distinguished road
no
__________________

ages.ccs.com/ccsimages/cat_
Reply With Quote
  #23  
Old 10-02-2001, 03:36 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by fireball_dolphonia
no
ok, doesnt matter where you got it though
Reply With Quote
  #24  
Old 10-02-2001, 03:57 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Quote:
Originally posted by btedji


ok, doesnt matter where you got it though
True True
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #25  
Old 10-02-2001, 05:43 PM
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
delete

delete this thread please !!!!
Reply With Quote
  #26  
Old 10-03-2001, 02:34 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
its getting annoying

its getting annoying
Reply With Quote
  #27  
Old 10-03-2001, 03:03 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
this thread is good for people who wanted to do the mining thing
Reply With Quote
  #28  
Old 10-03-2001, 03:06 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
hmmm ...

Quote:
Originally posted by btedji
this thread is good for people who wanted to do the mining thing
not for those who dont understand it ...
Reply With Quote
  #29  
Old 10-03-2001, 03:07 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Re: hmmm ...

Quote:
Originally posted by nyghtGT
not for those who dont understand it ...
true
Reply With Quote
  #30  
Old 10-03-2001, 03:16 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
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 .....
Reply With Quote
Reply


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 10:51 PM.


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