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 01-17-2004, 01:39 AM
Ningnong Ningnong is offline
Registered User
Ningnong's Avatar
Join Date: Nov 2002
Location: < -- way
Posts: 262
Ningnong is on a distinguished road
Baddy Script Example

Hi, I just thought I'd post this to help people learn how to script baddys. Its the basic movement / detect player system, it also shows you how the move command works with a few timeout pauses. It also contains some nice forumlas for a damage system.

I started it for the archaic project. AnU has now decided to create a much simpler pw, so the scripting is being redone.

Please DO NOT simply copy this script. Learn the script, then make one of your own.

- Hope this helps a few people
Attached Files
File Type: txt baddy.txt (3.6 KB, 377 views)
__________________
Former Global Scripting Team Member


Reply With Quote
  #2  
Old 01-17-2004, 01:59 AM
Hevaricubed Hevaricubed is offline
Registered User
Join Date: Aug 2003
Posts: 262
Hevaricubed is on a distinguished road
Send a message via AIM to Hevaricubed Send a message via Yahoo to Hevaricubed
Oooh mocchs.

No Onwall = Bad Onwall.
__________________
Reply With Quote
  #3  
Old 01-17-2004, 12:08 PM
Ningnong Ningnong is offline
Registered User
Ningnong's Avatar
Join Date: Nov 2002
Location: < -- way
Posts: 262
Ningnong is on a distinguished road
as I say it's not complete. If anyone needs help with onwall, i'd suggest searching for "onwall" in the forums.

- Or you could find me on a pw and start nagging me :P
__________________
Former Global Scripting Team Member


Reply With Quote
  #4  
Old 01-17-2004, 01:09 PM
Hevaricubed Hevaricubed is offline
Registered User
Join Date: Aug 2003
Posts: 262
Hevaricubed is on a distinguished road
Send a message via AIM to Hevaricubed Send a message via Yahoo to Hevaricubed
i like loriels onwall code, too insanely huge for words but oooooh so sweet.
__________________
Reply With Quote
  #5  
Old 01-19-2004, 11:53 PM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
I like Stefan's onwall, not as long as Loriel's
__________________
Reply With Quote
  #6  
Old 01-20-2004, 04:14 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by ZeLpH_MyStiK
I like Stefan's onwall, not as long as Loriel's
Not as good as Loriel's either, Loriel's fixes some bugs in Stefan's
Reply With Quote
  #7  
Old 01-20-2004, 04:28 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Now begs Stefan to release a new onwall detection that fixes whatever bug Python is talking about
__________________
Reply With Quote
  #8  
Old 01-20-2004, 07:46 AM
wonderboysp2p wonderboysp2p is offline
Registered User
wonderboysp2p's Avatar
Join Date: Sep 2002
Location: -Wonderboy
Posts: 537
wonderboysp2p is on a distinguished road
Send a message via AIM to wonderboysp2p
Quote:
Originally posted by ZeLpH_MyStiK
Now begs Stefan to release a new onwall detection that fixes whatever bug Python is talking about
*Wonders if you know that "python" is jagen... not python...*
__________________

we are the llama FORUms!!!EWQ Ce13d5423f23!! 2e1 @$6tgv3uy65!
Reply With Quote
  #9  
Old 01-20-2004, 03:53 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Pretty nice Ning
I'm sure that your code will help many people.

Quote:
Originally posted by wonderboysp2p
*Wonders if you know that "python" is jagen... not python...*
So...?
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #10  
Old 01-20-2004, 05:54 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
if he wanted to avoid being called Phython he should have gotten the account Jagen. ;-)


Hehe, I tried to duplicate graal's onwall once. It was tricky, How it can slide through corners and everything. I almost had it, but not quite. I could always get it perfect if it was for a speed of 0.5 but if it was variable speed I had problems.

I was hoping move would work and I wouldn't even have to write any onwall code, but noooo it has to be broken. lol.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #11  
Old 01-25-2004, 04:23 AM
Idrox0 Idrox0 is offline
Registered User
Join Date: Oct 2003
Posts: 66
Idrox0 is on a distinguished road
I got yer baddy script right here:

http://www.geocities.com/ace2896/

Click on "Baddy Scripter's Bible". Although, at the time of writing this, the link seems to be broken. But check out the "Newbie Scripter's Bible" anyways! It helped me quite a bit, and it shows and explains ALL of the commands I think... good luck!
__________________
Reply With Quote
  #12  
Old 01-25-2004, 04:59 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Quote:
Originally posted by adam
if he wanted to avoid being called Phython he should have gotten the account Jagen. ;-)


Hehe, I tried to duplicate graal's onwall once. It was tricky, How it can slide through corners and everything. I almost had it, but not quite. I could always get it perfect if it was for a speed of 0.5 but if it was variable speed I had problems.

I was hoping move would work and I wouldn't even have to write any onwall code, but noooo it has to be broken. lol.
vecx(playerdir)*speed? that should work

Quote:
Originally posted by wonderboysp2p
*Wonders if you know that "python" is jagen... not python...*
...ok...lol yes?
__________________
Reply With Quote
  #13  
Old 01-25-2004, 05:09 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by Idrox0
I got yer baddy script right here:

http://www.geocities.com/ace2896/

Click on "Baddy Scripter's Bible". Although, at the time of writing this, the link seems to be broken. But check out the "Newbie Scripter's Bible" anyways! It helped me quite a bit, and it shows and explains ALL of the commands I think... good luck!
That's pretty old.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #14  
Old 01-25-2004, 06:18 PM
R0bin R0bin is offline
Banned
R0bin's Avatar
Join Date: Oct 2002
Location: Wales, UK
Posts: 828
R0bin is on a distinguished road
Send a message via AIM to R0bin
heh fun, dirgo.
Reply With Quote
  #15  
Old 01-26-2004, 10:00 PM
Ningnong Ningnong is offline
Registered User
Ningnong's Avatar
Join Date: Nov 2002
Location: < -- way
Posts: 262
Ningnong is on a distinguished road
I bet it's clientside aswell.
__________________
Former Global Scripting Team Member


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 08:06 PM.


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