Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-24-2009, 02:15 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
disable serverside destroy()...

Destroy() on the serverside should not work for DBNPCs(excluding putnpc2's), WNPC's, and I guess level NPC's. It's a bit silly to have to put our own prevention methods so people can't put a script in a level and destroy whole weapons. Really, when do you NEED to destroy a WNPC? I mean, I guess client-RC might use that sort of thing, but I'm sure exceptions could be made for that. Either way, I'd like to see some sort of methods worked out that don't involve having scripters make protection for each and every one of their scripts.

Last edited by DustyPorViva; 08-24-2009 at 03:17 AM..
Reply With Quote
  #2  
Old 08-24-2009, 03:02 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
I agree (client-RC does not use the destroy command anyway).
__________________
Reply With Quote
  #3  
Old 08-24-2009, 03:46 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
I tried to destroy a WNPC from another DBNPC/WNPC using:

PHP Code:
// substituting "npc" with the real name.
findnpc("npc").destroy();
findweapon("npc").destroy(); 
And wasn't able to o:

In theory couldn't you just.. (For now i guess)

PHP Code:
public function destroy() {
  return 
false;

__________________
Quote:
Reply With Quote
  #4  
Old 08-24-2009, 03:55 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by fowlplay4 View Post
I tried to destroy a WNPC from another DBNPC/WNPC using:

PHP Code:
// substituting "npc" with the real name.
findnpc("npc").destroy();
findweapon("npc").destroy(); 
And wasn't able to o:

In theory couldn't you just.. (For now i guess)

PHP Code:
public function destroy() {
  return 
false;

On testbed they actually distribute some script that will do a callstack and such and echo on RC if an NPC tries to destroy it(as well as what NPC it was).

Either way, I don't really see a need for such a lose security. As for whether it's possible or not I'm not sure, but it was a huge thing on Testbed so I figured it was.
Reply With Quote
  #5  
Old 08-24-2009, 03:57 AM
TESTRETIS TESTRETIS is offline
Zvarri!
TESTRETIS's Avatar
Join Date: Oct 2003
Posts: 970
TESTRETIS has a spectacular aura about
Didn't know it was actually possible to do that to DBNPCs. For WNPCs, though I think I might disagree.
Reply With Quote
  #6  
Old 08-24-2009, 05:12 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by TESTRETIS View Post
Didn't know it was actually possible to do that to DBNPCs. For WNPCs, though I think I might disagree.
You want to be able to destroy WNPC's with scripts? Why?
Reply With Quote
  #7  
Old 08-24-2009, 06:01 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
Not really wanting to spread code, but you would use

PHP Code:
findWeaponNPC("test").destroy(); 
Quote:
Originally Posted by TESTRETIS View Post
Didn't know it was actually possible to do that to DBNPCs.
Absolutely, I accidently destroyed about a dozen DBNPCs on Testbed when attempting to clear out some guy's putnpc2's. There is a server option to disable it, though.
__________________
Reply With Quote
  #8  
Old 08-24-2009, 07:22 AM
TESTRETIS TESTRETIS is offline
Zvarri!
TESTRETIS's Avatar
Join Date: Oct 2003
Posts: 970
TESTRETIS has a spectacular aura about
Quote:
Originally Posted by DustyPorViva View Post
You want to be able to destroy WNPC's with scripts? Why?
If I'm not mistaken, you can use this in substitution of removeweapon();
Or so thor claims.

I know, not the most effective or best way, but..
Reply With Quote
  #9  
Old 08-24-2009, 07:39 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 TESTRETIS View Post
If I'm not mistaken, you can use this in substitution of removeweapon();
Or so thor claims.

I know, not the most effective or best way, but..
You can remove weapons from a player clientside by calling destroy(). Serverside it deletes the weapon.
__________________
Reply With Quote
  #10  
Old 08-24-2009, 11:51 PM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally Posted by DustyPorViva View Post
Destroy() on the serverside should not work for DBNPCs(excluding putnpc2's), WNPC's, and I guess level NPC's. It's a bit silly to have to put our own prevention methods so people can't put a script in a level and destroy whole weapons. Really, when do you NEED to destroy a WNPC? I mean, I guess client-RC might use that sort of thing, but I'm sure exceptions could be made for that. Either way, I'd like to see some sort of methods worked out that don't involve having scripters make protection for each and every one of their scripts.
I'm pretty sure DBNPCs are protected by default, assuming no one has adjusted server options... At least going off of http://graal.net/index.php/Server_op...PCs_Protection they should be. I'm unable to use destroy() on DBNPCs on Delteria Dev.

I guess I should learn to read though since that was already posted.

At any rate, weapons should be protected as well.
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 07:54 AM.


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