Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Strings for mining. (https://forums.graalonline.com/forums/showthread.php?t=25261)

Deadly_Killer 03-08-2002 07:34 AM

Strings for mining.
 
Anyway I can make a hammer with a string and not a triggeraction? I have the mining script i just need a hammer without using triggeractions. Anyway?

Python523 03-08-2002 07:38 AM

Re: Strings for mining.
 
Quote:

Originally posted by Deadly_Killer
Anyway I can make a hammer with a string and not a triggeraction? I have the mining script i just need a hammer without using triggeractions. Anyway?
Why??Triggeraction works fine on free and p2p servers

Deadly_Killer 03-08-2002 07:41 AM

strings
 
I aint good at triggeractions and i like to try other things =D i like the hard way

screen_name 03-08-2002 07:50 AM

Re: strings
 
Quote:

Originally posted by Deadly_Killer
I aint good at triggeractions and i like to try other things =D i like the hard way
you will learn soon that you would rather have it the easier way


and triggeraction isnt that hard and i cant think of anyother way to mine without triggeraction

Deadly_Killer 03-08-2002 07:56 AM

...
 
Can you just help me with this doing strings? I dont know strings to well so i would like to learn em.

Python523 03-08-2002 08:51 AM

I think what mining did before triggeraction was check for the gani
Im not sure if you can use strings for it, you could but i t would probably be hard and a pain in the ass compared to triggeraction

Deadly_Killer 03-08-2002 08:52 AM

can u try something besides triggeraction?

Faheria_GP2 03-08-2002 09:15 AM

Re: Re: strings
 
Quote:

Originally posted by screen_name


you will learn soon that you would rather have it the easier way


and triggeraction isnt that hard and i cant think of anyother way to mine without triggeraction

the old shitty graal2001 way

check the gani and if it's standing over the NPC

Deadly_Killer 03-08-2002 07:00 PM

...
 
I got the gani now what heres the script for hammer so far.

NPC Code:

// NPC made by Zell
timereverywhere;
if (playerenters) {
toweapons Hammer;
}
if (weaponfired){
setani jhammer,hammermetalicon.gif;
freezeplayer 0.5;
}


Saga2001 03-09-2002 12:10 AM

Use triggeractions or I refuse to help. :grrr:

TDO2000 03-09-2002 12:37 AM

String Version... it's a silly way but possible... dunno why u want to use strings...

Hammer:
NPC Code:

if (playertouchsme) toweapons Hammer;
if (weaponfired) {
setani jaxe,;
set hammer;
freezeplayer 1;
timeout = 1;
}
if (timeout) unset hammer;



the mining stone
NPC Code:

if (playerenters) {
timereverywhere;
timeout=.05;
}
if (timeout) {
if (playerx in |x-3,x+width+3| && playery in |y-3,y+height+3| && hammer) {
setstring hammered, #v(strtofloat(#s(hammered))+random(0,1));
setplayerprop #c, jeha hammer;
}
timeout=.05;
}


But it's a silly way

SaijinGohan 03-14-2002 01:33 AM

u have to learn triggeraction, its so eane you try it for a few times


All times are GMT +2. The time now is 12:13 AM.

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