View Single Post
Old 08.05.2007, 23:01   #15
Eloims
Архивный участник
 
Join Date: May 2006
Posts: 6
Default

wow
I didn't exept to have so many answer with just that little share

I didn't include security on the object because I don't use that file only for administrative purpose, and my users can use some cached functions (with a lot a restrictions of course )

I explain:
maybe many l2off servers have solved that problem but I'm not fond of asm or that kind of things, so I couln't do it "the right way":
many players at my server complained because only the leader of a pledge can get items from the pledge warehouse, and it's quite uncool for big pledges, because the leader does nothing else than being in the CH and managing the warehouse

so (if the pledge leader previously allowed them in the web), any player can move items from his pledge warehouse to his own warehouse with cached functions

the script of course is secure (well I hope that, because I havn't got a lot of experience xD ) and players can do nothing but moving items, if they're allowed to do so.


it is only an example
another packet that could be usefull for players is changename is you have a roleplay server

Changing l2font you can make the underscore "_" look like a space " " and then allow your players to choose a family name (of course you allow that only once per character)

if a player is called "Eloims"
cached can change his name into "Eloims_Alderahim"

It's very usefull for weddings:
if "Eloims_Alderahim" and "Aria_Holia" have gotten married, an admin can change Aria's name to be "Aria_Alderahim" and so on.


I may add some packets if I've got some time to do so, but I've no intention of adding security in this, because I do all the checks in the website

Nevertheless It could be interesting to do that
if someone wants to do it, I will welcome it (an maybe use it)
could be quite easy just adding a class that extends the one I did and that overide the cacheDinteractive function with another one that checks what you need to check for your security
or maybe just adding a Construtor function to the object, that could do the same

edit: sorry for bad english
but hey, it's well known that french people is bad at english
I've got an excuse
Eloims is offline