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-nmm6 (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-nmm6 (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-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Leave House Function or ContextMenu
Author Message
Reflex
Journeyman
*

Posts: 130
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #11
RE: Leave House Function or ContextMenu
Ok.. Thank you very much shaklaban.. sorry about all the confusion =\ I've got one last and final question re-guarding this issue. Now I am in a situation where we have been creating special arenas and they are specified as a t_mutli_custom or t_multi_custom whatever it is called.
When trying to call the contextmenu of course the contextmenu script doesnt know how to distinguish between a player's house and a arena or a custom multi we have used for decoration around the world. What is the best way for me to add some type of distinguishing factor for the contextmenu leave house script to be able to tell it is in a player's house and not in one of my custom arenas or in some decorational house.. that doesn't have a house sign to grab the morep from ? I've already placed about 15 arenas and custom multis around the world I wouldn't mind adding tags or something to the existing ones and then adding that into part of the script but im not sure if that is the best way and or how to do that? Any help would be appreciated thanks guys.
Example:

Code:
//Part of one of my custom arena's
[DEFNAME Death_By_Dice]
MultiCreator_Saves_Death_By_Dice = i_multi_foundation_45x45
MultiCreator_Death_By_Dice_0 = 2084,-1,-3,-4
MultiCreator_Death_By_Dice_1 = 2086,0,-3,-4
MultiCreator_Death_By_Dice_2 = 1889,3,-21,1

Now also...

[FUNCTION IsOnHouse]
if ((<UID.<REGION.UID>.TYPE>==t_multi) || (<UID.<REGION.UID>.TYPE>==t_multi_custom)) && (<Z> > <SERV.MAP(<P.X>,<P.Y>,<P.M>).TERRAIN.Z>)
    return 1
endif
return 0

// Leave House Script
[EVENTS e_all_players]
ON=@ContextMenuRequest
if (<isonhouse> == 1)
SRC.AddContextEntry 1001,6207,0
SRC.AddContextEntry 1000,5000,0
else
SRC.AddContextEntry 1000,5000,0
endif

ON=@ContextMenuSelect
IF (<ARGN>==1000)
    f_playerinfo_d_chooser
    return 1

ELIF (<ARGN>==1001) && (<isonhouse> == 1)
REF1=<UID.<SRC.REGION.UID>.MORE2>
src.go <REF1.P>
src.move s
src.fix
return 1

else
return 0
ENDIF
(This post was last modified: 04-24-2012 11:46 AM by Reflex.)
04-24-2012 11:46 AM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #12
RE: Leave House Function or ContextMenu
well if you dont have table you can add invisible part to the multis then teleport players to that part. or you can hold x and y differences between exit point and center of multi in the defname or tag, then you can calculate the exit point.
04-25-2012 06:27 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Reflex
Journeyman
*

Posts: 130
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #13
RE: Leave House Function or ContextMenu
Well I was wanting the script to only work for player created houses only. Any of the other custom multis I wouldnt want them to be able to use the leave house option.
04-28-2012 04:29 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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