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
  #1  
Old 01-16-2007, 06:10 AM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Post Help

I just recently scripted a mailing system and I am now scripting the part that states who has the most letters sent.

PHP Code:
for (iallplayers){
temp.player findPlayer(i);
this.sentmail.(@temp.player) = temp.player.clientr.sentmailamt;

I get it to output in the flags of the npc 'Mail':
PHP Code:
sentmail.MandangoP2P=19
sentmail
.rapidwolve=2
sentmail
.Spike5656=
I then use a function 'calcMostSent' to determine who sent the most I am stumped at this part, I have no clue what to do. I've tried:
PHP Code:
for (jthis.sentmail.getdynamicvarnames()){
if (
this.sentmail.(@j) > this.sentmail(@j[j+j-1]){
this.mostsent this.sentmail.(@j);
this.mostsentacc j;
}

Don't even ask why I did that, because I was just guessing X_x. I tried alot of other ways but it hasn't worked. Can somebody help me?

Last edited by Rapidwolve; 01-16-2007 at 06:20 AM..
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 01:50 AM.


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