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 08-21-2006, 05:12 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Custom Damage System

So anyway, DR will now be more of an rpg server, and I'm gonna need a way to damage a player without hurt, hitplayer, etc.
I was thinking an action that is triggered when the damage is needed to be done, and where, and received by a system NPC that the other guy has, which would cause the damage. When the custom hp variable hits zero, the players hearts are set to zero, and dead.
So, would this work, is there a better way? Or am I completely off track?
hmm?
Reply With Quote
  #2  
Old 08-21-2006, 10:32 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
umm you could completely script the player dieing aswell,

function onTimeOut() {
if (clientr.hp--) { //not sure about this
freezeplayer(1);
setani("hurt",NULL);
}
if (clientr.hp == "0") {
freezeplayer(1.2);
setani("dead",NULL);
}
}
__________________
Deep into the Darkness peering...
Reply With Quote
  #3  
Old 08-21-2006, 10:34 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
This seems to work (although using a similar system for attacking baddies doesn't work, see my other thread on that: http://forums.graalonline.com/forums...86#post1211986).
I was wondering if there was a better way to do this though.
Reply With Quote
  #4  
Old 08-23-2006, 02:53 AM
ZeekTheMan2 ZeekTheMan2 is offline
Zeek Is The Man
ZeekTheMan2's Avatar
Join Date: Feb 2006
Location: Ohio
Posts: 12
ZeekTheMan2 is on a distinguished road
Send a message via AIM to ZeekTheMan2
have you tried using function onActionprojectile(){
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 03:09 PM.


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