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
  #1  
Old 12-05-2008, 12:50 AM
WaDaFack WaDaFack is offline
*
WaDaFack's Avatar
Join Date: May 2007
Posts: 419
WaDaFack is an unknown quantity at this point
Post Kill/Death stat transfer

If you want to transfer the kill/deaths attribute from one account to another than use this

NPC Code:
function onCreated()
{
findplayer("WaDaFack").kills = findplayer("BobTheSnowman").kills;
findplayer("WaDaFack").deaths = findplayer("BobTheSnowman").deaths;
}



That transfer the stats of BobTheSnowman to the account WaDaFack
Just put the accounts backwards, so the stats from WaDaFack can go to BobTheSnowman.
There you go, now the stats of BobTheSnowman is on WaDaFack, and the stats of WaDaFack is on BobTheSnowman.



- Script by Skyld
__________________
WaDaFack

Reply With Quote
 


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 05:14 PM.


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