Thread: Sword System
View Single Post
  #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