The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Guild Town Features
Author Message
Fronz
Apprentice
*

Posts: 36
Likes Given: 2
Likes Received: 0 in 0 posts
Joined: Apr 2016
Reputation: 0



Post: #1
Guild Town Features
Hello again.

I'm requesting two scripts that shouldn't be that hard. I'm not the most skilled scripter, that's why I'm asking for your help.

One Script for an NPC and another script for something else.


First the NPC script:

The purpose of this NPC is that you can say "Open" to him and he will lower a UID and after some time it will nudge it up again to normality.

What I want from this NPC is to have a timer. So when you say Open it will open and after some time it closes. But when you say Open again to him he will say that you have to wait X minutes to open the gates again. Let's say 30 minutes.

Now I managed to make everything work, except the ItemDef m_traitor_wall_5hoursdelay. Everything else works fine if I remove that ID.

The following code DOESN'T work but I think the structure of it is correct.


Nevermind this one has been fixed!






The Second Script might be a little bit more complicated. I'll try to explain my best.


I need a function, it can be for the command .expel , that if you are in a specific area, let's say Moonglow, you can use it to Expel players out of that area.

I want everyone to be able to use that command. But ONLY in that area. If you are outside that Area it says a message saying you can't use this command here or something.

Now. I don't want the .expel to be used on everyone. I want only to be used on people that have a "tag?" (not sure if I'm using the right word). If you try to use it on people that don't have a Tag it says you can't use it on them.

Also if possible, can it be made so that it can't target Incognito players? "You can't expel incognito players".


And to get that tag, people need to trigger a telepad.


This Telepad will give you 2 tags and not just 1.

The First Tag is the one that makes you a candidate to be used the command .expel on you. It should have a timer of 48 hours.
Also the tag is removed when someone uses .expel on you

The Second Tag is a tag that lasts 30 minutes and prevents you from being .expel .
Meaning when you use the telepad, for 30minutes you can't be expelled. But after that time you can be expelled.



Thank's for the help,
Fronz
(This post was last modified: 05-18-2016 04:18 AM by Fronz.)
05-18-2016 01:29 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Guild Town Features - Fronz - 05-18-2016 01:29 AM
RE: Guild Town Features - richm - 05-18-2016, 05:08 AM
RE: Guild Town Features - pointhz - 05-18-2016, 06:17 AM
RE: Guild Town Features - richm - 05-18-2016, 06:35 AM
RE: Guild Town Features - Fronz - 05-28-2016, 02:06 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)