Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 02-14-2003, 11:12 PM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
I'll try to explain it as simple as possible

Ok, The actual sword part is really simple. Just a basic NPCW(weapon) that sends a triggeraction (I believe someone already posted what triggeraction is) that sends parameters to the NPC-Server. The parameters can (and should) be the X and Y where the sword hit is, also the player who swung the swords accountname, index, or ID would be a good thing. You can add other things for more options and such later.

After you do that you need some kind of System to handle the triggered actions serverside. This can be a NPCW also. It will recieve the actions and handle them appriopriatly. Such as finding out if a player is in the coordinates passed in the parameter. If there isn't then nothing will happen (unless, ofcourse, you want something to happen. Such as saying "MISSED!"), but if there is a player in the given coordinates then you can then cause damage to the player however you see fit.

I tried to make this simple, if you have questions just talk to me on AIM or through forum PM
__________________
new account: Trevor
 


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 12:25 AM.


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