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
Animal Ownership
Author Message
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #1
Animal Ownership
Hello, I'm trying to make a race ability "natural wonder". Once a player uses this, the server checks the distancetalk for animals and gives a memory to them thus giving the player ownership.

I had this working fine, but I'm wanting to add in a part so if their arent any animals with "brain_animal" it tells them. This is where it stopped working.



[function f_natural_wonder]
forchars <serv.distancetalk>
IF (<NPC> == 1)
makemypet
src.say Help me forest friends!
return 1
else
src.say There are no animals to help!
return 1
ENDFOR
ENDIF


[function MakeMyPet]
serv.newitem=i_memory
new.color=memory_ipet
new.link=<src>
new.cont=<uid>



I'd also like to add a timer on the animals so when it reaches zero the player no longer has ownership and they return to their spawn. I'm sure I could do this part but no harm in asking Tongue Thank you!

Of course as soon as I post this i realize i'm retarded.

I figured it out, nevermind
(This post was last modified: 02-06-2015 06:12 PM by Leonidas.)
02-06-2015 06:03 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 2 users Like Leonidas's post
Post Reply 


Messages In This Thread
Animal Ownership - Leonidas - 02-06-2015 06:03 PM
RE: Animal Ownership - Coruja - 02-07-2015, 01:35 AM
RE: Animal Ownership - Extreme - 02-07-2015, 06:02 AM
RE: Animal Ownership - Leonidas - 02-11-2015, 05:41 PM

Forum Jump:


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