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:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Join Guild via Menu WITH toggle on *SOLVED*
Author Message
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #1
Join Guild via Menu WITH toggle on *SOLVED*
how can i get players to join a guild using a menu and NOT have to be accepted by the guildmaster.... an easy force WITH TOGGLE ON =)
(or a way to force toggle on for everyone, if your in a guild its always there no matter what)


Code:
[MENU MENU_JOIN_WEI]
Welcome <Name>, Do you wish to join the army of Wei?
ON=0 I confess my loyalty to the Army of Wei and declare Lord Cao Cao my master.
CONFIRM_WEI
ON=0 No
SRC.SYSMESSAGE You decided not to join...

[MENU CONFIRM_WEI]
Are you sure you wish to join the Army of Wei?
ON=0 Yes
JOINWEI
ON=0 No
SRC.SYSMESSAGE You decided not to join...

[FUNCTION JOINWEI]

SRC.TAG.ARMY WEI
SRC.SYSMESSAGE Congtatulations, You have joined the mighty army of Wei!
SRC.GO xxxx,xxx


this is what the guildstone looks like in sphereworld.scp
Code:
[WORLDITEM i_guildstone]
SERIAL=040001fdc
NAME=Wei
COLOR=04
TAG.changeabbrev_time=066eeae
P=5136,1767
ALIGN=0
ABBREV=Wei
MEMBER=01ffd,,2,01ffd,1,1,0 <--guildmaster with toggle on
MEMBER=040001fd3,,100,00,1,1,0 <--guild at war with
MEMBER=040001fca,,100,00,1,1,0 <--guild at war with

and the memory item on the guildmaster
Code:
[WORLDITEM i_memory]
SERIAL=040001fdb
COLOR=0400
TIMESTAMP=697036
LINK=040001fdc
ATTR=04
MOREP=5137,1766
LAYER=30
CONT=01ffd

ideas?

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 01-04-2015 02:51 PM by x77x.)
01-02-2015 08:38 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #2
RE: Join Guild via Menu WITH toggle on
like trying to find the actual guildstone and add a member via script...


Code:
[FUNCTION JOINWEI]
<finduid.040001fdc>MEMBER=<SRC.UID>,,<SRC.UID>,1,1,0
SRC.TAG.ARMY WEI
SRC.SYSMESSAGE Congtatulations, You have joined the mighty army of Wei!
SRC.GO xxxx,xxx


knowwhatimsayin?

Dragons of Time 2000-2020
http://dragonsoftime.com
01-03-2015 04:15 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #3
RE: Join Guild via Menu WITH toggle on
BAM!!! figured it out...


Code:
[FUNCTION JOINWEI]
OBJ <UID.040001fdc>
OBJ.MEMBER=<SRC.UID>,,2,<SRC.UID>,1,1,0
SRC.TAG.ARMY WEI
SRC.SYSMESSAGE Congtatulations, You have joined the mighty army of Wei!
SRC.GO xxxx,xxx



in theory...
i bet you could do this to NPCs as well
because they are linked to the guildstone without the memory item

Dragons of Time 2000-2020
http://dragonsoftime.com
01-04-2015 02:49 PM
Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #4
RE: Join Guild via Menu WITH toggle on *SOLVED*
you could have used the JOINASMEMBER guild stone function. so in your case OBJ.JOINASMEMBER <SRC.UID> but it won't allow NPCs to join.
Another thing, it's not necessary to use SRC everywhere, actually, it's recommended not to. Depending from where you call this function, SRC may not always be your intended reference. Specially in a function, it is best to use the default object [ ] or [I] and call the function with the reference that is needed.

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
01-05-2015 03:34 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #5
RE: Join Guild via Menu WITH toggle on *SOLVED*
example please...

Dragons of Time 2000-2020
http://dragonsoftime.com
01-05-2015 06:46 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #6
RE: Join Guild via Menu WITH toggle on *SOLVED*
It's already explained and have an example...

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
01-05-2015 06:52 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #7
RE: Join Guild via Menu WITH toggle on *SOLVED*
so....?

[FUNCTION JOINWEI]
OBJ <UID.040001fdc>
OBJ.JOINASMEMBER <SRC.UID>
SRC.TAG.ARMY WEI
SRC.SYSMESSAGE Congtatulations, You have joined the mighty army of Wei!
SRC.GO xxxx,xxx

i dont understand what Ben was saying...
i was asking to show me how he suggests the cleanest way to do it is
learn through example

extreme, dont bother answering if you dont have anything productive to say...
you may understand it, but i dont

Dragons of Time 2000-2020
http://dragonsoftime.com
01-05-2015 09:38 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #8
RE: Join Guild via Menu WITH toggle on *SOLVED*
Just stop trying the impossible.
I said you can't insert npcs on guilds, Ben either.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
01-05-2015 09:39 PM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #9
RE: Join Guild via Menu WITH toggle on *SOLVED*
the above is for PLAYERS...

Dragons of Time 2000-2020
http://dragonsoftime.com
01-05-2015 10:06 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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