Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-13-2007, 06:01 PM
PrinceOfKenshin PrinceOfKenshin is offline
That guy with a beard
PrinceOfKenshin's Avatar
Join Date: May 2004
Location: Ontario, Canada
Posts: 819
PrinceOfKenshin has a spectacular aura aboutPrinceOfKenshin has a spectacular aura about
NPCS, Classes Weapons.

Well i know this sounds stupid. But i never understood what goes where.

I know in Classes instead of having the script in a level you make a class and just call the class from the level.

And for weapons i know you add weapons to a player.

and NPCs are databases.


I also know that in NPCs you can store items. Such as a gun. (on atrius)
PHP Code:
AK47=AK47,gun,at_ak47-icon1.gif,automatic,clipinfo,1,AK47 
and in the classes you have all the information for the gun.

PHP Code:
this.gun.AK47 = {"AK47""at_ak47-""at-newbullet""Rifle Ammo"falsefalse0.30.11.5, -.10100.40.4, {{0,0},{-1.8,-.6},{0,0},{1.8,-.6}}, {{{.5,0},{-.5,0}}, {{-.7,-1.35},{-.5,-1}}, {{-.5,0},{.5,0}}, {{.7,-1.35}, {.7,-.7}}}}; 
And in the weapons you have the main script for the gun that makes it fire, reload and all that good stuff.

But i don't understand How i can add other things like a medkit (just an example.)

I don't know if i should put it in all three (npc,class,weapons) or just weapons and npc. Can someone explain this to me?
__________________


Quote:
Game Master (Server): Greetings PrinceOfKenshin, there are new posts on the forums that demand your urgent attention! God speed, the fate of the world is in your hands. If you fail, middle earth will forever be in the darkness and your children will be enslaved by McKain.
Reply With Quote
 

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:13 PM.


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