Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 03-26-2008, 02:29 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by [email protected] View Post
no NAT on UN knew of any such command
That explains alot.

You also could have easily scripted it yourself instead of doing what you did.
PHP Code:
function hideimgs(startend) {
  for (
temp.start<= end++) {
    
hideimg(i);
  }

__________________
Reply With Quote
  #17  
Old 03-26-2008, 02:40 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Inverness View Post
On Windows you can use Wordpad to view most .doc files, and Microsoft Word can view any that Wordpad can't view. .docx is viewed with Microsoft Word 2007 and above.
I know, I easily use Windows twice as much as Mac ...
__________________
Reply With Quote
  #18  
Old 03-26-2008, 03:08 AM
[email protected] rkritou@opt.net is offline
Registered User
Join Date: Mar 2008
Posts: 10
rkritou@opt.net is on a distinguished road
Oh wow, durr, I feel stupid.
I did that for the boots and the player's outfit colors, but I just didn't think
of using that for the imgs.. z.z

Thanks for bringing that up. ;o
Reply With Quote
  #19  
Old 03-26-2008, 03:17 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by [email protected] View Post
Oh wow, durr, I feel stupid.
I did that for the boots and the player's outfit colors, but I just didn't think
of using that for the imgs.. z.z

Thanks for bringing that up. ;o
You're letting staff change player's appearance with a staff tool ... ?

I fail to see how that could ever be productive.
__________________
Reply With Quote
  #20  
Old 03-26-2008, 03:48 AM
[email protected] rkritou@opt.net is offline
Registered User
Join Date: Mar 2008
Posts: 10
rkritou@opt.net is on a distinguished road
Actually I was referring to the view attributes part I've added, that shows
your current outfit that you're wearing.
Please check things before you make comments like that please. =x
I mean I wouldn't mind really, but I sorta took your post in a negative manner while you mentioned that about my script before checking it. o.o

And second, it actually does set player's outfits though anyways, though that's not what I was referring to in that post. But what I did, was set this up as a serverside action like this, to save up space...

"findplayer(params[1]).params[2] = params[3];"

So you can set basically all player.strings, and add/remove/edit clientr.strings for the player using that.

It's not like I set this up individually... z.z

"findplayer(params[1]).headimg = params[2];"

Now having a whole bunch of that ^ nonsense, is useless. ;p
But even though, I do say I've found myself in GP related situations where I've had to change someone's head, or shield, as an
uploader over looked an inappropriate image while uploading or w/e.
Reply With Quote
  #21  
Old 03-26-2008, 04:19 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by [email protected] View Post
"findplayer(params[1]).params[2] = params[3];"
That is extremely insecure, I would never, ever use that.

For changing look, use RC. Staff tools should not be anything other than making things convenient, for example, jailing, summoning, adding weapons (where you have to deal with adding strings to the player, or editing a file, or whatever), etc. RC should be used for setting player strings such as client and clientr.

RC is there for a reason. Playerworld rules actually state that RC functions shouldn't be replaced with insecure scripted ones generally.
__________________
Reply With Quote
  #22  
Old 03-26-2008, 04:32 AM
[email protected] rkritou@opt.net is offline
Registered User
Join Date: Mar 2008
Posts: 10
rkritou@opt.net is on a distinguished road
This tool is mainly to help Admins and Managers of the server get along
quick and easy on player as they come across situations.
Shame if an Admin or Manager finds a way to abuse it.

I just made this to help them go along easier on player, not having to log
onto RC or anything if they didn't want to at the moment. If you don't want
it on your server due to staff you cannot trust, then just don't have it? o.O
The staff that use this on the server I play on, surely aren't as low, and are
highly trust worthy.

So any thoughts like that never came across my mind, I just wanted to share
something I made, that responsible Admins can use for easy get around on player.

[Edit]: But I wasn't aware of this, that you've mentioned "Playerworld rules actually state that RC functions shouldn't be replaced with insecure scripted ones generally"
I'll get to finding a more secure method.

Last edited by [email protected]; 03-26-2008 at 04:45 AM..
Reply With Quote
  #23  
Old 03-26-2008, 05:10 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
A few snippets from Playerworld Rules

NO NPC Should be abusive such as changing players names, changing players looks etc. IF you really need this then it should have security measures such as account and guild checking. And the NPC should log all users actions.

NPCs should not be used to substitute RC rights if they can’t be made secure.

It does mention that things like warpto, summon, etc are okay however, but something like a complete player control NPC is just not secure enough.
__________________
Reply With Quote
  #24  
Old 03-26-2008, 05:16 AM
[email protected] rkritou@opt.net is offline
Registered User
Join Date: Mar 2008
Posts: 10
rkritou@opt.net is on a distinguished road
Well I'll get to adding logs asap then, as well as changing/removing some features too.
Thanks for showing me those, I wasn't aware. ;x
Reply With Quote
  #25  
Old 03-26-2008, 05:19 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
May also want to disable some things, maybe have an array like this:

PHP Code:
temp.notAllowed = { "rupees""hearts""fullhearts""kills""deaths""clientr.sacred" }; 
or whatever to protect certain scared variables that would most be targeted.
__________________
Reply With Quote
  #26  
Old 03-26-2008, 05:03 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Inverness View Post
That explains alot.


Quote:
Originally Posted by [email protected] View Post
But what I did, was set this up as a serverside action like this, to save up space...

"findplayer(params[1]).params[2] = params[3];"
LOL!
I'll remember that when Unholy Nation explodes one day from "hacking".
__________________
Do it with a DON!
Reply With Quote
  #27  
Old 03-26-2008, 10:36 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by zokemon View Post
LOL!
I'll remember that when Unholy Nation explodes one day from "hacking".
Exactly.
__________________
Reply With Quote
  #28  
Old 03-29-2008, 10:20 PM
bscharff bscharff is offline
Bloo
bscharff's Avatar
Join Date: Sep 2006
Location: San Antonio, Texas
Posts: 185
bscharff has a little shameless behaviour in the past
Send a message via AIM to bscharff Send a message via MSN to bscharff Send a message via Yahoo to bscharff
Quote:
Originally Posted by [email protected] View Post
Please don't get an image of "BlooTool" or anything like that.
Yay?!
I'm popular!
NOT
__________________
Trying to be nice now...
Reply With Quote
  #29  
Old 03-29-2008, 10:57 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by bscharff View Post
Yay?!
I'm popular!
NOT
Sad when abusive ****ty scripts make you popular ...
__________________
Reply With Quote
  #30  
Old 03-30-2008, 02:27 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Hmm, I decided to read over your script, and came across a few things.

1.

PHP Code:
Line  984showPoly( -player.account, {player.xplayer.yplayer.3player.y}); 
Why do you use player.account?


2.

Line 1019: say2() -> use of #b, that's gs1


3.

Line 1089: "if (timeout && this.ison == true) {", should be
PHP Code:
function onTimeout() {
  if (
this.ison == true) { // or just 'if (this.ison) {'
    
...
  }


4.

Stuff like player.ap, player.fullhearts etc. should be set serverside.


5.

Line 12: Space between function and parenthesis


6.

Line 19: "if (temp.Online = true) {" -> use '=='
And it could even just be
PHP Code:
if (temp.Online) {
  ...


7.

On a server like Unholy Nation I don't think a global say2 command for staff is needed, nor any fun for a player, f.ex durring pk or sparring


8.

Line 339 & 339: Use of object.level should be object.level.name


9.

Line 688: 0.05 is the smallest a timeout can be clientside, 0.1 serverside



Just some stuff I found, hope this can improve your script !
__________________
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 04:40 PM.


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