[HELP]Houses

10/05/2009 22:01 KiiDxLaggy#1
Sometimes on server donators can get houses with there on person composer or maps and stuff, how would i do that for my server? all help is very very appreciated! :):handsdown::handsdown:
10/06/2009 07:47 Drenferalis#2
Its inside the castle system, you will need to edit a NPC you can buy in the castle and give it to the donator when they donate, you may have to make your own cq_actions, but if you own a server and know even a little bit about mysql then this shouldnt be too hard. It will just take some time. Easy way would be change the castle NPC's action ID to a teleporters ID or the composers ID.
10/07/2009 11:34 funhacker#3
Quote:
Originally Posted by Drenferalis View Post
Its inside the castle system, you will need to edit a NPC you can buy in the castle and give it to the donator when they donate, you may have to make your own cq_actions, but if you own a server and know even a little bit about mysql then this shouldnt be too hard. It will just take some time. Easy way would be change the castle NPC's action ID to a teleporters ID or the composers ID.
No it has nothing to do with the castle system there is a set type that creates/destroys/enters a "House" map. You also have a set type that can be used to enter the "mates" (wife/husband) house.
10/08/2009 07:30 funhacker#4
*bump*


1033 = Create House Map
Data = Null (Always 0)
Param = "Name Owner_type Owner_id mapdoc portal_x portal_y reborn_map reborn_portal res_lev"
All Param values Needed. The map is made like a cq_dynaMap

1034 = Enter House Map
Data = Null
Param = Null

1035 = Enter Mate House Map
Data = Null
Param = Null


Not Tested by me
10/17/2009 04:48 KiiDxLaggy#5
what? LOL im knda new to coding, help more is appreciated FUNHACKER OwnZ? XD
10/17/2009 05:35 funhacker#6
the numbers 103X are cq_action type values.
Example would be:
126 = Display Message Window
Data = null (Always 0)
Param = "%MessageText"
10/17/2009 11:22 KiiDxLaggy#7
ok that ads it to cq_action now how would i give it to a donator or me for testing. Thnx alwayz :)
10/17/2009 11:32 funhacker#8
...You make an item like a Key for example run that cq_action.

To enter home you would make the cq_action:
1034-0-""
If succeed
126-0-"Welcome to your home %user_name!"
If fail
126-0-"You do not have a home %user_name!"
502-[u]ID Of the Item[/i]-""

To make a home you would make the cq_action:
1033-0-"%user_name-Home * %user_id ** *** **** ***** ****** *******"
502-ID of Item that makes home-""
501-ID of the item for entering home-""
Then you would continue with the same cq_action id as you use for the key (thus entering the person into their new home)

Notes
*-Owner Type I do not know off memory check an example from either castle or shop_flags that should tell you the number to use.
**-Choose a mapdoc to use for homes, an example would be 1000 = the visualisation of cronus/market
***/****-Portal X and Y are the positions you would be teleported to when entering the map
*****/******- RebornMap/portal this is where you would be taken if using for example a townportal town revive or logging off/back in when still in the map.
*******-Res Lev I would not know I think it has always been 0 but don't quote me ;)