Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Player House Help (https://forums.graalonline.com/forums/showthread.php?t=11599)

RaVeN_629 09-11-2001 04:06 AM

Player House Help
 
I just purchased a player house and now i need some help with the scripting

Does anyone have the door scripts for the player house i will start with this???

ownerofbabylon 09-11-2001 08:57 AM

Re: Player House Help
 
Quote:

Originally posted by RaVeN_629
I just purchased a player house and now i need some help with the scripting

Does anyone have the door scripts for the player house i will start with this???

you have to script playerhouses?

KJS 09-11-2001 08:59 AM

I hope this will awnser all your questions

Quote:

Originally posted by Stefan
Yesterday all playerhouses have been updated
to a new script version. Main features:
- automatic rent system (say show rent/pay rent)
- all keys have a number so you can use it for assigning
ownership to special rooms (and it works after npcserver
restart since the keys are saved in the house-control npc)
- a new class for playerhouse doors which makes the
thing simplier, the script looks like this:
NPC Code:

if (created) {
this.key = 4;
setstring this.control,House-Control1;
this.warpx = 8;
this.warpy = 13;
}
join housedoors;


- new command: 'give ownership to "accountname"'

Because the rent thing is simplier now (because it doesn't
need admins to transfer the money etc.) we can add more
houses, possibly in the underground lake


ownerofbabylon 09-11-2001 09:00 AM

thanks man ^_^

RaVeN_629 09-11-2001 10:52 AM

THX ALOT!!!!!

MrCoolDude 09-12-2001 03:31 AM

Is that the only script you need for it to work?

Enigma_GP6 09-12-2001 07:17 AM

//This is a door for people you hate.
//NPC Made by Rebel95
If (playertouchsme){
hide .5;
sleep .5;
show;
set killzero;
}
if (killzero||timeout){
this.killzero=15;
if(this.killzero>0){
playerap--;
playerrupees--;
playerswordpower--;
playerhearts--;
hurt 5;
sleep .5;
timeout=.05;
}
}


-Rebel95


All times are GMT +2. The time now is 12:39 AM.

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