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 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
  #2  
Old 12-05-2008, 01:29 AM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Assuming dontchangekills=false in server options.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #3  
Old 12-05-2008, 01:37 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Well, uh... thank you for sharing this revolutionary script with us!
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #4  
Old 12-05-2008, 02:07 AM
WaDaFack WaDaFack is offline
*
WaDaFack's Avatar
Join Date: May 2007
Posts: 419
WaDaFack is an unknown quantity at this point
Don't ask! Ahahaha
I just felt like posting this for peoples needs!
__________________
WaDaFack

Reply With Quote
  #5  
Old 12-06-2008, 11:57 AM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Hm.

So I could also do something like:

findplayer(Pelikano).guild = "Test";

And that would work?
Reply With Quote
  #6  
Old 12-06-2008, 12:20 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by Pelikano View Post
Hm.

So I could also do something like:

findplayer(Pelikano).guild = "Test";

And that would work?
on serverside, yes.

on clientside no, its read only
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #7  
Old 12-06-2008, 12:28 PM
RozenMaiden RozenMaiden is offline
Registered User
Join Date: Dec 2008
Posts: 27
RozenMaiden is on a distinguished road
Quote:
Originally Posted by Deas_Voice View Post
on serverside, yes.

on clientside no, its read only
i guess it won't work on serverside either.
Assuming the "" around the name are still missing and Pelikano isnt a variable
Reply With Quote
  #8  
Old 12-06-2008, 02:20 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
It will work. A simple
PHP Code:
player.guild "Guild"
will do aswell. And I think it also works on the clientside. If it doesn't, I think
PHP Code:
player.nick @= " (Guild)"
does.
Reply With Quote
  #9  
Old 12-06-2008, 02:47 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Pelikano View Post
findplayer(Pelikano).guild = "Test";

And that would work?
Only if Pelikano is a variable.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #10  
Old 12-12-2008, 10:25 AM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Of course I forgot something again.
=P

"Pelikano"

Well, can I change anything like that?

like:

findPlayer("Account").x += 1;
Reply With Quote
  #11  
Old 12-12-2008, 05:23 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
If serversided, you can use it to change anything you'd like on another object.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #12  
Old 12-13-2008, 08:28 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Kewl
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 05:35 AM.


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