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
  #7  
Old 07-16-2011, 01:41 AM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
[QUOTE=BboyEatsbacon;1658989]
PHP Code:
function onCreated() {
setTimer(0.05);
}
function 
onWasH1t() {
  
this.last_attacker player.account;
}
function 
onTimeOut() {
if (
this.hearts == "0" || this.hearts == NULL) {
findplayer(this.last_attacker).addweapon("SomeWeaponName");
}
setTimer(0.05);

Quote:
Originally Posted by fowlplay4 View Post
2. Your "solution" would constantly add the weapon to the player while it's dead.
What fowlplay wants to say is:

PHP Code:
function onWasH1t() {
  
this.last_attacker player.account;
  if (
this.hearts == "0" || this.hearts == NULL) { //If you use costume health system for baddies or whatever than replace it with this part
    
findplayer(this.last_attacker).addweapon("SomeWeaponName");
  }

and again 1 = i at the WasH1t
__________________
MEEP!
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:05 PM.


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