![]() |
Outift Save - Opinions?
This isn't really a general question looking for help or such but rather what you think so far as I have been learning to script.
The general idea of this script is to be able to save your current outfit with a specified name using the command, "/save oufit "name"" as well as load it later using the command, "/load outfit "name"". It's not finished but tell me what you think. PHP Code:
P.S. I'm considering creating functions for each part. But Hell Raven has taught me it's best to make independent functions. Tho, I have not done so here. |
HTML Code:
function onPlayerChats () |
Quote:
Very nice script, though a little long for what it is. Also, I notice 'client.length'? Not quite sure what that is supposed to do, but I'm pretty sure that won't return anything. Also, the onCreated function ... there's no need to delete the outfits, unless you were testing. And to delete an array it is best to use obj.clear(); And lastly, as far as I can tell, player.chat.tokenize(); I'm not sure how you'd get that to work. You need to assign that to something ... NPC Code: |
Quote:
Quote:
[QUOTE] Also, the onCreated function ... there's no need to delete the outfits, unless you were testing. And to delete an array it is best to use obj.clear(); [QUOTE] I'm pretty sure that using ' "" ' rather than 'NULL' would not delete the array. I was scripting something similar to this and while using NULL it deleted the array but with the quotations it didn't. :o Quote:
Thanks. |
add a 'this.currentoutfits' array so you go about editing some outfits rather then just adding to the string
|
Things like this I sometimes feel are better stored on the clientside (in scriptfiles, par exemple) but I guess that means that if someone loses their Graal installation, their outfits go with it.
|
Quote:
|
| All times are GMT +2. The time now is 11:54 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.