View Full Version: [Guide] Door With Key

saefunserver >>Help >>[Guide] Door With Key


<< Prev | Next >>

Painkiller- 08-10-2006
[Guide] Door With Key
Well I'll post here how you can make a door requier a certain key ... We need to have a .tcl file in the tcl folder like this (doesn't matter what name): namespace eval -*test*-('")door { proc QueryQuest { obj player questlistid } { if 90006 1> { AddItem $player 90006 set PosObj set PosPla set NewX *2-> set NewY *2-> Custom::TeleportPos $player " $NewX $NewY " } } } And also we need a key, in items.scp write this: 90006> name=Key for Test Door description=Opens Test Door. class=13 reqlevel=1 quality=1 classes=07FF level=1 material=0 model=13290 races=0FF spell=21248 0 -1 -1 0 -1 stackable=1 And we also need a door which is in gameobjects.scp here it is: name=Test Door questscript=-*test*-('")door flags=00 type=2 model=1189 sound1=361 Ok there are a few things we must be careful with: 1. The name -*test*-('")door has to be the same in the "questscript=" line and in the .tcl file at the begining. 2. Change the 90006 to the key ID you want to use ... 3. Also change the ID of the gameobject to the door you want to use ...

Swiftarrow- 08-10-2006

exelent! i'll make this into my new player housing technique

Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.