Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-30-2009, 05:44 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Vesporia (code released)


Neither Jave or I have the time to maintain Vesporia, so we have decided to release most of the scripts. You're free to use them however you like. I ask only that you not create any Vesporia clones, and give a link to this thread for anyone who asks.

The code is attached; enjoy, and I hope this helps someone out. The movement system will be released in a separate thread once some modifications have been made.

Credits also to Jave Cross for some of the scripts.
Attached Files
File Type: zip Vesporia.zip (47.8 KB, 786 views)
__________________
Reply With Quote
  #2  
Old 03-30-2009, 05:45 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
for those who don't care to download the zip, could you tell us what this package contains?
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #3  
Old 03-30-2009, 05:48 PM
Schetti Schetti is offline
SC2 Player
Schetti's Avatar
Join Date: Nov 2008
Location: Austria
Posts: 269
Schetti is on a distinguished road
just open?
__________________
“Peace cannot be kept by force. It can only be achieved by understanding.” – Albert Einstein
Reply With Quote
  #4  
Old 03-30-2009, 06:02 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by Deas_Voice View Post
for those who don't care to download the zip, could you tell us what this package contains?
Quote:
Originally Posted by Schetti View Post
just open?
read the Bolded and ask that again please.
Major Spoiler:i downloaded it but i think the thread creator should tell.
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #5  
Old 03-30-2009, 07:52 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Here's the main things it contains:
  • "explosive" class (grenades)
  • gun scripts
  • info booth
  • smoke particle
  • proxy/timed mines
  • battleground system (including voting)
  • leaderboards
  • package manager
  • gun example scripts
  • options & controls
  • names system (very cool)
  • HP system
__________________
Reply With Quote
  #6  
Old 03-30-2009, 10:30 PM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
not to be rude or anything

not to be rude or anything

but where is the keydown class

it says it need s it in the scripts

but i dont see it in the zip file
Reply With Quote
  #7  
Old 03-30-2009, 10:32 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by GULTHEX View Post
not to be rude or anything

but where is the keydown class

it says it need s it in the scripts

but i dont see it in the zip file
Here.
Attached Files
File Type: txt class_keydown.txt (332 Bytes, 335 views)
__________________
Reply With Quote
  #8  
Old 03-30-2009, 10:47 PM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
Exclamation another error

okay another 1 is that when you insert all the scripts

and fire the weapon

it dont do anything

nothing personal
Reply With Quote
  #9  
Old 03-31-2009, 02:15 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by GULTHEX View Post
okay another 1 is that when you insert all the scripts

and fire the weapon

it dont do anything

nothing personal
What do you mean by "all the scripts"? I hope you're not trying to just copy everything. That's not what this release was intended for.
__________________
Reply With Quote
  #10  
Old 03-31-2009, 02:47 AM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
i mean like when i run this weapon

i made ak the name for a test


Script: Function GULTHEX.addMessage not found at line 15 of class_gun in script of Main Weapons/AK47 (in level entropolis_ab-ab.nw at pos (0, 0))


check the script

when i press 1 of the buttons it says

Script: Function GULTHEX.addMessage not found at line 15 of class_gun in script of Main Weapons/AK47 (in level entropolis_ab-ab.nw at pos (0, 0))



so i added all the scripts to see if that was the prob so i still have the error
Reply With Quote
  #11  
Old 03-31-2009, 03:01 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Gulthex...it's not meant to be a server clone....you are supposed to reading the scripts and integrating anything that is useful.... not just copy+paste.
Reply With Quote
  #12  
Old 03-31-2009, 03:02 AM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
im not i just need the gun system thats all iv ben having trouble with mine for a verry long time
Reply With Quote
  #13  
Old 03-31-2009, 03:04 AM
Pimmeh Pimmeh is offline
Rgesitreed Uesr
Pimmeh's Avatar
Join Date: May 2007
Location: Utrecht, the Netherlands
Posts: 1,586
Pimmeh has a spectacular aura about
Send a message via AIM to Pimmeh Send a message via MSN to Pimmeh
Quote:
Originally Posted by GULTHEX View Post
im not i just need the gun system thats all iv ben having trouble with mine for a verry long time
So you're copying pasting? Dude, if you cant even figure THAT out you really shouldn't try and start a server -_-
__________________
Oh, Death,
No wealth, no ruin, no silver, no gold
Nothing satisfies me but your soul
Reply With Quote
  #14  
Old 03-31-2009, 03:07 AM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
Quote:
Originally Posted by GULTHEX View Post
im not i just need the gun system thats all iv ben having trouble with mine for a verry long time
........
No comment.
Reply With Quote
  #15  
Old 03-31-2009, 03:12 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Quote:
Originally Posted by GULTHEX View Post
im not i just need the gun system thats all iv ben having trouble with mine for a verry long time
I havn't extracted it yet (will soon) but does it look like the guns system is a standalone script?

From this thread, I can see a reference to a function the player object has to join and there is probably more to come...

'Nothing personal"....pretentious git
Reply With Quote
  #16  
Old 03-31-2009, 03:15 AM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
Also, if I'm not mistaken, you posted a "gun script" that had many replies stating on how you could fix it / make it better. Not sure if it was a whole system or not.. Don't kill me if it isn't D:

I guess you could just find that thread or something, look there. If not, like Twinny said, "From this thread, I can see a reference to a function the player object has to join and there is probably more to come...".
Reply With Quote
  #17  
Old 03-31-2009, 06:15 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Twinny View Post
I havn't extracted it yet (will soon) but does it look like the guns system is a standalone script?
It pretty much is. Gulthex, you probably just need to upload "class_keydown", "class_gun", and one of the gun weapons, then weed out any of the add message, etc stuff.

The reason it's not working is likely because you haven't set your controls. Look down toward "onHotKeyPressed", it should be apparent there what you need to do.
__________________
Reply With Quote
  #18  
Old 07-23-2009, 05:00 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Hey.

Will the Movement System released anytime soon?
Reply With Quote
  #19  
Old 07-23-2009, 08:07 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Pelikano View Post
Hey.

Will the Movement System released anytime soon?
I took another look at it, and decided it probably wasn't worth releasing since it's not as impressive as I remember it being (e.g. lacking some basic features such as sliding near walls), but if you want, I can post it here.
__________________
Reply With Quote
  #20  
Old 07-24-2009, 04:19 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Quote:
Originally Posted by cbk1994 View Post
I took another look at it, and decided it probably wasn't worth releasing since it's not as impressive as I remember it being (e.g. lacking some basic features such as sliding near walls), but if you want, I can post it here.
Yeah, would be nice.
I've learned a lot from the other classes/weapons etc.
Reply With Quote
  #21  
Old 07-24-2009, 04:41 PM
DarkRenji DarkRenji is offline
Lv
DarkRenji's Avatar
Join Date: Jun 2007
Location: s
Posts: 1,273
DarkRenji is a jewel in the roughDarkRenji is a jewel in the rough
Send a message via MSN to DarkRenji
Ah what a shame that you cant run the server, I always loved this server since it was like SoG
__________________
Quote:
Originally Posted by Im not a newb View Post
Renji shouldn't be allowed to be rich EVERYWHERE.
Reply With Quote
  #22  
Old 07-24-2009, 04:49 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
I'd rather see good/finished code released rather than incomplete/poorly scripted, at least if the person is actually aware of such. If he says it's missing basic things like sliding and all, why release it? There are finished movement scripts released, even if in GS1 and such, that people can at least learn from.
Reply With Quote
  #23  
Old 07-24-2009, 10:20 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by DustyPorViva View Post
I'd rather see good/finished code released rather than incomplete/poorly scripted, at least if the person is actually aware of such. If he says it's missing basic things like sliding and all, why release it? There are finished movement scripts released, even if in GS1 and such, that people can at least learn from.
You've got a good point, but I guess if he thinks he can learn from it, that's just as well.

These threads will probably help just as much: 1 2 3

I've attached the script.
Attached Files
File Type: txt weapon%045System%047Movement.txt (5.3 KB, 240 views)
__________________
Reply With Quote
  #24  
Old 07-25-2009, 12:44 AM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Quote:
Originally Posted by DustyPorViva View Post
I'd rather see good/finished code released rather than incomplete/poorly scripted, at least if the person is actually aware of such. If he says it's missing basic things like sliding and all, why release it? There are finished movement scripts released, even if in GS1 and such, that people can at least learn from.
How do you know what I prefer and from what I can learn better? oO
Reply With Quote
  #25  
Old 07-25-2009, 06:25 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Pelikano View Post
How do you know what I prefer and from what I can learn better? oO
Hey, if you wanna learn from broken/incomplete scripts instead of fully scripted ones, be my guest. He admitted it was never finished, I simply suggested learning from something more finished and complete.

I also don't remember ever even attempting to assume what you'd prefer or what you'd learn better from.
Reply With Quote
  #26  
Old 10-22-2009, 08:51 PM
Scouser Scouser is offline
Registered User
Join Date: Oct 2009
Posts: 63
Scouser is an unknown quantity at this point
Thanks Chris, learning alot from reading this and trying to determine what each thing does
Reply With Quote
  #27  
Old 10-22-2009, 09:14 PM
Arch_Angel Arch_Angel is offline
Registered User
Join Date: Apr 2007
Posts: 482
Arch_Angel is on a distinguished road
Send a message via AIM to Arch_Angel
Call him Chriis.
Reply With Quote
  #28  
Old 11-28-2009, 04:31 PM
Samposse Samposse is offline
Chopa Shopa !
Samposse's Avatar
Join Date: Nov 2008
Location: Norway
Posts: 87
Samposse is an unknown quantity at this point
Send a message via AIM to Samposse Send a message via MSN to Samposse
All 'Those Scripts didnt realy help'd me , only the -System/Names sins no one work'd -.-
__________________
Delitto :3

A
SERVER
UNDER
CONSTRUCTION !

feel free to ask me about delitto
Reply With Quote
  #29  
Old 11-28-2009, 05:27 PM
Dnegel Dnegel is offline
Rjax Shizibz
Join Date: Jul 2009
Posts: 1,334
Dnegel will become famous soon enough
Quote:
Originally Posted by Samposse View Post
All 'Those Scripts didnt realy help'd me , only the -System/Names sins no one work'd -.-
Reply With Quote
  #30  
Old 11-28-2009, 07:07 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
Quote:
Originally Posted by Samposse View Post
All 'Those Scripts didnt realy help'd me , only the -System/Names sins no one work'd -.-
The point is to learn from them...not just grab 'n go.
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 07:48 PM.


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