I'm just shooting the breeze here but have you tried using the variation of doors.cfg (old way of opening door) that is made on the server and have it open then close? Just an idea - no idea how to implement it...
|
Here is the code for Al-Kharid Gate. It works perfectly but char walks trough the closed gate... is there any way to autmatticly close and open??Code:case 2882: if(c.playerHasItem(995, 10)) { if (c.absX == 3267 && c.absY == 3227 || c.absX == 3267 && c.absY == 3228) { c.deleteItem(995, 10); c.fmwalkto(1, 0); } if (c.absX == 3268 && c.absY == 3227 || c.absX == 3268 && c.absY == 3228) { c.deleteItem(995, 10); c.fmwalkto(-1, 0); } } else { c.DA().npctalking(c, 925, "", "NIE MA PRZEJSCIA ZA DARMO", "10 gp jak dla ciebie.", ""); } break;
I'm just shooting the breeze here but have you tried using the variation of doors.cfg (old way of opening door) that is made on the server and have it open then close? Just an idea - no idea how to implement it...
I think about it ... it can be done by something like gatestate
But how to make when he reach the point X the Gatestate change to 1Code:if (dh.gatestate[d] == 0) { // closed newFace = dh.doorFaceOpen[d]; dh.gatestate[d] = 1; dh.doorFace[d] = newFace; } else { newFace = dh.doorFaceClosed[d]; dh.gatestate[d] = 0; dh.doorFace[d] = newFace; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |