Thread: Globalization
View Single Post
  #3  
Old 08-11-2003, 03:54 PM
GrowlZ1010 GrowlZ1010 is offline
defunct
Join Date: May 2002
Posts: 187
GrowlZ1010 is on a distinguished road
Sounds good, but wouldn't something like this be better?
NPC Code:

with (getserver(Graalympus)){
with (offlineplayer(GrowlZ1010)) setstring clientr.carrycash,#v(playerrupees);
}



Where with (offlineplayer) would obviously be used to set attributes of a player who's not online (this would be nice to have anyway), and with (getserver) being used to do something to another server.

Of course, if this were possible any way, people would do
NPC Code:

with (getserver(Delteria)){
with (offlineplayer(newbie4)) setstring clientr.whatevertheirbankstringis,10000000;
}



.. so we should add two new flag/string types: transfer and transferr. Transfer read/writable on serverside only, and transferr being read/writable on serverside and readable on client. These would be the only strings you could set with getserver, so you couldn't interfere in the normal running of that server. (Obviously servers would be allowed to set transfer/r strings on their own players without needing to use getserver. To clear things and soforth.)

This would provide all the functionality you could want:
NPC Code:

if (playertouchsme){
with (getserver(Rudora)){
with (offlineplayer(#a)) setstring transferr.from,Delteria;
}
}

if (actionplayeronline && !strequals(#s(transferr.from),)){
say2 Hi, welcome to Rudora!#bYou came from #s(transferr.from), eh?;
setstring transferr.from,;
}



It'd also allow servers to communicate with each other easily: you could even have a cross-server chat client using lots of transferr calls..
Reply With Quote