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






Post Reply 
 
Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
World Spawner/Decorator [updated v2.0.a]
Author Message
Soulless
Super Moderator
****

Posts: 335
Likes Given: 29
Likes Received: 49 in 27 posts
Joined: Jun 2012
Reputation: 12

Ye Olde Sphere

Post: #22
RE: World Spawner/Decorator (Complete)
Here's a function you can add at the end of others_signs_felucca.scp in the spawners/decoration/misc folder


Code:
foritems 9999
  if <type>==t_sign_gump
    name=<name_new_sign>
  endif
endfor

[function name_new_sign]
serv.newitem i_lantern
new.p=<p>
for N 0 7
  if !<isempty <new.tag.name>>
    new.remove
    //serv.b name the sign <new.tag.name>
    return <new.tag.name>
  endif
  new.p=<p>
  doswitch <dlocal.n>
    new.check_for_sign_name n
    new.check_for_sign_name ne
    new.check_for_sign_name e
    new.check_for_sign_name se
    new.check_for_sign_name s
    new.check_for_sign_name sw
    new.check_for_sign_name w
    new.check_for_sign_name nw
  enddo
endfor
new.remove

[function check_for_sign_name]
move <args> 2
if <room>
  //serv.log found <room.name>
  tag.name=<room.name>
  return <room.name>
endif
(This post was last modified: 12-18-2016 10:19 PM by Soulless.)
12-18-2016 10:14 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: World Spawner/Decorator (Complete) - Soulless - 12-18-2016 10:14 PM

Forum Jump:


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