Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-26-2011, 10:06 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
House System

About
This house system allows players to click Enter House and get warped to their own personal house.
Yuu can also click Invite friends to invite players to your house.

How to use it?
Attached is the House System I am currently working on.
To use it add this right to yourself rw levels/houses*.nw then upload the default_house.nw file and the default_house_inside.nw to there, next add rw levels/houses*.nw to the NPC-Servers rights.
Now all you need to do is add the HouseSystem (WEAPON).txt file as a weapon script to your'e server and add the Furniture (CLASS).txt file as a class.
If there are problems with the script or any bugs, please post here.

Future Additions
1. Improvements on the furniture system.


Updated
It now features two levels, an inside and outside level for each player.
It also has a furniture button, which isn't working yet, but I will release an update here when I script it.
It also now has a furniture system, Enter you're house and click Furniture.
To add furniture to youre self add clientr.furniture.chair=chair.png etc etc.
To place furniture left click, to remove it right click.

Credits
1. Gunderak (Gunderak) - The outside level and scripts.
2. TNC (fight4life) - The inside level.

-Enjoy
Attached Files
File Type: zip HouseSystemv2.zip (4.7 KB, 434 views)
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion

Last edited by Gunderak; 12-27-2011 at 09:03 AM..
Reply With Quote
  #2  
Old 12-26-2011, 05:27 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Can you make a quick list of features? I want to see what it can do. I've never seen a house system before other than Era's so it'll be cool to see what you've done.
__________________
Reply With Quote
  #3  
Old 12-26-2011, 07:27 PM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
One it allows you to enter you're house.
Two it allows you to invite other players to you're house.
Three when you exit you get warped right back where you were.
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #4  
Old 12-26-2011, 07:46 PM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by Gunderak View Post
One it allows you to enter you're house.
Two it allows you to invite other players to you're house.
Three when you exit you get warped right back where you were.
Similar to how houses on Kingdoms work too?
Reply With Quote
  #5  
Old 12-26-2011, 08:28 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by scriptless View Post
Similar to how houses on Kingdoms work too?
And the iServers. At least it sounds like that.
__________________
MEEP!
Reply With Quote
  #6  
Old 12-26-2011, 08:55 PM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by callimuc View Post
And the iServers. At least it sounds like that.
I am not familiar with iphone servers. While I do own an iPhone I prefer to play Graal Kingdoms on the pc..
Reply With Quote
  #7  
Old 12-27-2011, 08:11 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Bump :3
-Updated
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #8  
Old 12-27-2011, 01:31 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by Gunderak View Post
Bump :3
-Updated
With?
__________________
MEEP!
Reply With Quote
  #9  
Old 12-27-2011, 04:13 PM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Read Updated bit lol

It now features two levels, an inside and outside level for each player.
It also has a furniture button, which isn't working yet, but I will release an update here when I script it.
It also now has a furniture system, Enter you're house and click Furniture.
To add furniture to youre self add clientr.furniture.chair=chair.png etc etc.
To place furniture left click, to remove it right click.

EDIT
You have to also add folder config.
level houses/*.nw
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion

Last edited by Gunderak; 12-27-2011 at 05:13 PM..
Reply With Quote
  #10  
Old 01-15-2012, 06:03 AM
eryal eryal is offline
Registered User
Join Date: Aug 2011
Posts: 13
eryal is on a distinguished road
It wont freakin work and its kinda making me mad ;(
Reply With Quote
  #11  
Old 01-15-2012, 09:10 AM
Hezzy002 Hezzy002 is offline
Registered User
Join Date: Jul 2011
Posts: 247
Hezzy002 is a jewel in the roughHezzy002 is a jewel in the rough
I'm really excited for when servers implement Gunderak's scripts, so I can exploit all their security flaws and become a Graal God.
Reply With Quote
  #12  
Old 01-15-2012, 11:53 AM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by eryal View Post
It wont freakin work and its kinda making me mad ;(
How about if you will take it as template and make yourown one or get someone making your own?
Also you should tell us what exactly is not working. Are the buttons not showing up? Won´t it warp you?
Also what kind of computer you got? MAC? Windows?
And what Graal version are you using?
__________________
MEEP!
Reply With Quote
  #13  
Old 01-15-2012, 04:18 PM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Quote:
Originally Posted by Hezzy002 View Post
I'm really excited for when servers implement Gunderak's scripts, so I can exploit all their security flaws and become a Graal God.
Hezzy, I don't think it's a good idea to say these kind of things here.
And how would you exploit them? you probably don't even know the first thing about hacking.
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #14  
Old 01-15-2012, 06:07 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Gunderak View Post
And how would you exploit them? you probably don't even know the first thing about hacking.
Considering that he's definitely one of the better coders around, he should know enough to do some nasty things, abusing several flaws with your code/code of others.
Reply With Quote
  #15  
Old 01-15-2012, 07:21 PM
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
Quote:
Originally Posted by Gunderak View Post
you probably don't even know the first thing about hacking.
You should probably learn something about script security.

I took a minute to look over your code and found quite a few things he could exploit.

He could generate all the house levels he wanted with a trigger, warp into people's houses and drag in their owner's without permission, place furniture in any level he wanted, use your furniture placer to display naughty images (this can be done without exploiting a script though), destroy people's furniture without permission.
__________________
Quote:
Reply With Quote
  #16  
Old 01-15-2012, 08:00 PM
Hezzy002 Hezzy002 is offline
Registered User
Join Date: Jul 2011
Posts: 247
Hezzy002 is a jewel in the roughHezzy002 is a jewel in the rough
Quote:
Originally Posted by fowlplay4 View Post
You should probably learn something about script security.

I took a minute to look over your code and found quite a few things he could exploit.

He could generate all the house levels he wanted with a trigger, warp into people's houses and drag in their owner's without permission, place furniture in any level he wanted, use your furniture placer to display naughty images (this can be done without exploiting a script though), destroy people's furniture without permission.
Ruining my aspirations of Graal Godhood, but whatever.
Reply With Quote
  #17  
Old 01-15-2012, 08:04 PM
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
Quote:
Originally Posted by Hezzy002 View Post
Ruining my aspirations of Graal Godhood, but whatever.
I'm sure his server is full of treasures for you to find.
__________________
Quote:
Reply With Quote
  #18  
Old 01-15-2012, 08:14 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by fowlplay4 View Post
I'm sure his server is full of treasures for you to find.
Sad thing is: you're probably right.
Reply With Quote
  #19  
Old 01-15-2012, 08:56 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by fowlplay4 View Post
He could generate all the house levels he wanted with a trigger, warp into people's houses and drag in their owner's without permission, place furniture in any level he wanted, use your furniture placer to display naughty images (this can be done without exploiting a script though), destroy people's furniture without permission.
All of these things with a single trigger.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
  #20  
Old 01-15-2012, 10:27 PM
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
Your system is horrid, and there's more problems with it then the obvious security ones but I don't care enough to tell you how to fix everything.

Pretty much all the problems stem from no server-side validation whatsoever.

Problem: He could generate all the house levels he wanted with a trigger.

Solution: Only allow levels to be generated when the player enters the house. If the levels don't exist when player's are invited to them have an error appear instead. Force the player to enter their house before even allowing them to invite people to it.

Problem: Warp into people's houses and drag in their owner's without permission.

Solution: Your invite system needs to be re-designed so there's an actual invite on the server-side the owner has to accept. If people aren't supposed to be in the house when the owner's not there, don't let them warp to it.

Problem: Place furniture in any level he wanted.

Solution: Make sure the player is in his house or has permission to lay furniture in the level. You should also make sure they actually have that piece of furniture as well.

Problem: Use your furniture placer to display naughty images (this can be done without exploiting a script though).

Solution: There's a server option you can use, it's a disable-all allow only a few solution though. Just display the image to client only by using 200 or above instead.

Quote:
Originally Posted by Stefan View Post
showimgstypes=all or poly,ani,img,text
showimgsallowedganis=all
showimgsallowedimages=all
showimgsfilterlog=true -> logs to logs/showimgsfilter.txt
Problem: Destroy people's furniture without permission.

Solution: Add a check to confirm the player has permission to destroy the furniture. I.e: If they're the actual owner of the house.
__________________
Quote:
Reply With Quote
  #21  
Old 01-16-2012, 03:05 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Thanks for the informative post, I will try to fix all issues when I am home.
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #22  
Old 04-28-2012, 03:10 AM
Vlad1 Vlad1 is offline
Registered User
Join Date: Apr 2012
Posts: 30
Vlad1 can only hope to improve
one glitch within your house script is if a player is in jail they can enter their house and exit their house and easily get out of jail
Reply With Quote
  #23  
Old 04-28-2012, 03:33 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
Quote:
Originally Posted by Vlad1 View Post
one glitch within your house script is if a player is in jail they can enter their house and exit their house and easily get out of jail
That's not really a glitch, more a custom condition that you need to script into it yourself.

A generic check like this could be added to prevent warping:

PHP Code:
temp.lvls serveroptions.jaillevels.tokenize(",");
if (
player.level.name in temp.lvls) {
  
player.chat "You are stuck in jail! red dragons";
  return;

__________________
Quote:

Last edited by fowlplay4; 04-28-2012 at 03:50 AM..
Reply With Quote
  #24  
Old 04-28-2012, 03:43 AM
skillmaster19 skillmaster19 is offline
Registered User
Join Date: Oct 2010
Posts: 392
skillmaster19 will become famous soon enough
from what ive heard hezzy is a pretty notorious hacker lol.
Reply With Quote
  #25  
Old 04-28-2012, 03:49 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
Quote:
Originally Posted by skillmaster19 View Post
from what ive heard hezzy is a pretty notorious hacker lol.
might want to read the date on those posts.

red dragons
__________________
Quote:
Reply With Quote
  #26  
Old 04-28-2012, 01:55 PM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Bumped much? lol
And bahahaha this is my old script.
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #27  
Old 04-28-2012, 09:54 PM
Devil_Lord2 Devil_Lord2 is offline
David K?
Devil_Lord2's Avatar
Join Date: Apr 2011
Location: PA, MD.
Posts: 643
Devil_Lord2 can only hope to improve
Quote:
Originally Posted by Gunderak View Post
Bumped much? lol
And bahahaha this is my old script.
That doesn't mean you should not improve it...
I honestly hate when people post of a script "To help help the Graal community" then when people give suggestions how to make them better or more efficient they 'brush them to the side' and the script is never actually finished.

In my opinion those type of "helping community posts" should be deleted since they aren't too great. Or put into a template section..

You should go back and fix up your old script so it can be once again considered good. :]
If I were you I'd remake the thread once it is finished and delete this one so it stays on the first page / post.
__________________

Digital Media Artist - David K? </3 (UnLoved)
www.davidkrout.com
www.twitch.com/DavidKkz




Last edited by Devil_Lord2; 04-28-2012 at 10:11 PM..
Reply With Quote
  #28  
Old 04-28-2012, 10:13 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Devil_Lord2 View Post
That doesn't mean you should not improve it...
This is not the code gallery. We can let this rot away.
Reply With Quote
  #29  
Old 04-29-2012, 03:16 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
David, I have fixed it up and added new features.
But it's in use on Corinthia and I will not be releasing it.
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:00 PM.


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