Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-30-2001, 02:11 AM
Huggles Huggles is offline
Should I care anymore?
Huggles's Avatar
Join Date: Apr 2001
Location: Arizona
Posts: 2,127
Huggles is on a distinguished road
Send a message via AIM to Huggles Send a message via Yahoo to Huggles
Scripts

Lets say we have a forge and we have supplies what kind of script would we make let say it takes 100 swings to make armor?
__________________
Captain USA, Or Captin USA

Plain and simple.
Reply With Quote
  #2  
Old 05-30-2001, 02:53 AM
freddyfox freddyfox is offline
Banned
freddyfox's Avatar
Join Date: Mar 2001
Posts: 6,705
freddyfox is on a distinguished road
Re: Scripts

Quote:
Originally posted by Huggles
Lets say we have a forge and we have supplies what kind of script would we make let say it takes 100 swings to make armor?
I'll warn you now. Many people around here want to do a trade skill without having to click their S button 10,000 times and get carpal tunnel syndrome.


But, anyways, here:

NPC Code:

if(washit){
this.swings ++;
play swordon.wav;
}
if(this.swings == 100){
putnpc blahblahblahblahetc.;
play chest.wav;
this.swings = 0;
}



Pretty basic, hope you find it useful.
Reply With Quote
  #3  
Old 06-08-2001, 02:02 AM
CJH CJH is offline
Registered User
Join Date: Jun 2001
Posts: 148
CJH is on a distinguished road
Send a message via ICQ to CJH Send a message via AIM to CJH
...I don't get it, or i'm just plain stupid. WHat was it supposed to do?
__________________
-DarkRain (Police)

Reply With Quote
  #4  
Old 06-08-2001, 03:59 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Thumbs down ok well

well I dont like the idea of pressing s or d alot (that is why I am not going to put it in to frolic that much)

but one big thing i have put it in is when people get jailed..

they have to hit stones (600 hits per stone)..

1 stone = 1 graal hour (if you hit d 600 times (w/o stopping))

and then they get warped out automatically once they have done there time
__________________
Thanks,
-KJL
Reply With Quote
  #5  
Old 06-08-2001, 04:15 AM
XilosTinsu XilosTinsu is offline
Registered User
Join Date: Jun 2001
Posts: 130
XilosTinsu is on a distinguished road
Send a message via AIM to XilosTinsu Send a message via Yahoo to XilosTinsu
Re: ok well

Quote:
Originally posted by KJS
well I dont like the idea of pressing s or d alot (that is why I am not going to put it in to frolic that much)

but one big thing i have put it in is when people get jailed..

they have to hit stones (600 hits per stone)..

1 stone = 1 graal hour (if you hit d 600 times (w/o stopping))

and then they get warped out automatically once they have done there time
LOL Doesn't Graal have something against cruel and unusual punishment?????
__________________
You may think that Death is the end to everything, it is only the beginning to some...
Reply With Quote
  #6  
Old 06-08-2001, 04:33 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool well

that is not cruel and unusual...

they were jailed for a reason and the reason makes them serve there time (we have it this so way the people can just sign off our server for so long and then the next day or whatever get back on and get out of jail)
__________________
Thanks,
-KJL
Reply With Quote
  #7  
Old 06-08-2001, 06:01 AM
XilosTinsu XilosTinsu is offline
Registered User
Join Date: Jun 2001
Posts: 130
XilosTinsu is on a distinguished road
Send a message via AIM to XilosTinsu Send a message via Yahoo to XilosTinsu
That's why you edit their attributes with RC saying
DON'T UNJAIL UNTIL 5/8/01
etc.
__________________
You may think that Death is the end to everything, it is only the beginning to some...
Reply With Quote
  #8  
Old 06-08-2001, 07:12 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool no you dont get it

NO you dont get it...

we want it so the people have to be in jail and serve there time (on most servers people get jailed and are like well I will just go on another server until my time is up, and they go back on once there time is up and then they get let out...)

See with the way we do it, it automatically unjails the person (so no rc has to be on)

and they have to accually serve there time on the server working to get there time off...

and also we are not giving out many rc's

only admins(lat admin, nat admin, gani admin, events admin) and the owners (me and slp)
have rcs

I mean it is usless if the person can just go on a different server until there time is up (then they will do it again because there really is no punishment there)

I mean like with this way they have to work there way out and most likly they wont do it again because there was something they had to accualy do to get let out and stuff...
__________________
Thanks,
-KJL
Reply With Quote
  #9  
Old 06-08-2001, 11:42 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Just automate the stone-whacking, so the player's frozen while a string variable decrements. That way they have to spend 6 Graal Hours watching their character breaking rocks.
Or maybe make it so they have to go from rock to rock every 5 minutes, each rock only lasts that long, but they only have to hit the key once
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #10  
Old 06-08-2001, 08:04 PM
XilosTinsu XilosTinsu is offline
Registered User
Join Date: Jun 2001
Posts: 130
XilosTinsu is on a distinguished road
Send a message via AIM to XilosTinsu Send a message via Yahoo to XilosTinsu
Quote:
Originally posted by Tyhm
Just automate the stone-whacking, so the player's frozen while a string variable decrements. That way they have to spend 6 Graal Hours watching their character breaking rocks.
Or maybe make it so they have to go from rock to rock every 5 minutes, each rock only lasts that long, but they only have to hit the key once
Good idea, I Know if I got put in jail on there and had to hit s 23235325532 times, I'd just set up my keyboard to do it.
__________________
You may think that Death is the end to everything, it is only the beginning to some...
Reply With Quote
  #11  
Old 06-08-2001, 09:14 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool well

well basically that is what i have tyhm... but the part were you move from rock to rock (I have thought about that, and will probably still make it some time) but like right now I only have 1 rock.

not many people get jailed and if they do they can pound on the same rock.... (It does the pounding clientside so no one can steal there rock)

jw XilosTinsu how do you set up your keyboard to press a button automatically
__________________
Thanks,
-KJL
Reply With Quote
  #12  
Old 06-08-2001, 10:11 PM
XilosTinsu XilosTinsu is offline
Registered User
Join Date: Jun 2001
Posts: 130
XilosTinsu is on a distinguished road
Send a message via AIM to XilosTinsu Send a message via Yahoo to XilosTinsu
Re: well

Quote:
Originally posted by KJS
jw XilosTinsu how do you set up your keyboard to press a button automatically
Macros.
Not sure exactly but it could be done.
Is this rock going to be blocking something and after they hit it so many times they can leave and the rock disappears???
__________________
You may think that Death is the end to everything, it is only the beginning to some...
Reply With Quote
  #13  
Old 06-08-2001, 10:19 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool well soon

right now the rock doesn't disapear...

but it will soon...

I also might do some animation random times to make it so the player cant set up a macro to do it for 600 hits..

like I mean mabie at every 100 hits I might make it so it moves them around (like to the jail guy you give your rocks to) then to the middle of the level or something like that...

it would prevent macros pretty much...
__________________
Thanks,
-KJL
Reply With Quote
  #14  
Old 06-08-2001, 11:08 PM
XilosTinsu XilosTinsu is offline
Registered User
Join Date: Jun 2001
Posts: 130
XilosTinsu is on a distinguished road
Send a message via AIM to XilosTinsu Send a message via Yahoo to XilosTinsu
I'm not sure how you have it set up but I wouldn't make the rocks dissapear then go to the door, because they could save the png as a 2x2 file or something small then they could walk right past, unless you have it set flags and stuff of the sort.
__________________
You may think that Death is the end to everything, it is only the beginning to some...
Reply With Quote
  #15  
Old 06-08-2001, 11:45 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool ok first of all there is no door...

first of all there is no door it is on a island...

here is a pic of it



I am saying I could make the rock disapear after they are done with it...

then every once and a while I could make them like walk around so they would have to walk back to there rock to get finished with it...

that would be annoing but like it would stop macros if I have the walk around thing like randomly 5 times per rock... or something
__________________
Thanks,
-KJL
Reply With Quote
  #16  
Old 06-09-2001, 12:05 AM
vergil vergil is offline
Registered User
vergil's Avatar
Join Date: Mar 2001
Posts: 1,408
vergil will become famous soon enough
Send a message via ICQ to vergil
why not just give players a limit to the amount of whatever it is they are getting out of the rock...
Reply With Quote
  #17  
Old 06-09-2001, 01:03 AM
XilosTinsu XilosTinsu is offline
Registered User
Join Date: Jun 2001
Posts: 130
XilosTinsu is on a distinguished road
Send a message via AIM to XilosTinsu Send a message via Yahoo to XilosTinsu
Yeah, hey how did you make the clock images appear?
__________________
You may think that Death is the end to everything, it is only the beginning to some...
Reply With Quote
  #18  
Old 06-10-2001, 08:22 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
on my playerworld .. Unholy Nation..
I just say for example user has 2 hours of jail time.. meaning they gonna spend 2 hours in jail .. and if they go offline .. their time doesnt go down.. pretty basic
__________________
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
  #19  
Old 06-10-2001, 09:00 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool well that is what

that is what happens on my server...

but they have to accually work... like they have to spend 2 graal hours of pressing d (based off my calculations)

so I mean there hand would get tired after a while and still have some more hours to do.. (it makes people learn there lesson)
__________________
Thanks,
-KJL
Reply With Quote
  #20  
Old 06-10-2001, 09:49 AM
vergil vergil is offline
Registered User
vergil's Avatar
Join Date: Mar 2001
Posts: 1,408
vergil will become famous soon enough
Send a message via ICQ to vergil
we need some other form of getting money besides button pressing. Some kind of teamwork thing. Maybe trading items? Like, you go over to this mine to pick up some diamonds which arent worth money (and dont take a while to get either) until you bring it over to some player that has a hammer to shape it.. you pay that guy money to hammer it then you get half of whats left, in the form of a ring.. you sell that to a merchant who in tern gets it enchanted by an enchanter.. then the diamond can be sold to a wizard for money
see what i mean?
Reply With Quote
  #21  
Old 06-10-2001, 11:35 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Import-Export trade.
You get paid for how quickly you can carry an item from one town to another.
^_~

(rushes off to Future Improvements)
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #22  
Old 06-10-2001, 11:58 AM
Inguz Inguz is offline
Registered User
Join Date: Mar 2001
Posts: 26
Inguz is on a distinguished road
send me a copy when u r done
Reply With Quote
Reply

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 02:07 PM.


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