Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ authorization
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1 2
| Posted by
| Ithildin
USA (262 posts) Bio
|
| Date
| Thu 23 Jan 2003 06:00 AM (UTC) |
| Message
| I'm wanting to take out the whole auth thing. is there a simple way to do that or do i have to go through all the code and take the auth stuff out? i was wanting for the players to just log in and when they made a new character they would automatically be in their hometown, without going through the newbie area.
any thoughts or suggestions?
Ithildin | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Thu 23 Jan 2003 07:16 AM (UTC) |
| Message
| |
| Posted by
| Ithildin
USA (262 posts) Bio
|
| Date
| Reply #2 on Thu 23 Jan 2003 07:55 AM (UTC) |
| Message
| | the waitforauth only sends the players to the mob that advances them to two, i was wanting for like when they log into a new character they will automatically start in there hometown. and also i've been seeing that when i authorize people. they pull the rope but they stay unauthed and go to the executioner. i have to actually mset them to get the flag off of them. | | Top |
|
| Posted by
| Ithildin
USA (262 posts) Bio
|
| Date
| Reply #3 on Thu 23 Jan 2003 07:56 AM (UTC) |
| Message
| | what i meant for that last one was, when i turn the waitforauth to 0 it sends them straight into the area with the mob that advances them to two. | | Top |
|
| Posted by
| Meerclar
USA (733 posts) Bio
|
| Date
| Reply #4 on Thu 23 Jan 2003 01:10 PM (UTC) |
| Message
| | Im afraid youll need to do some coding to make that happen the way youve described it. Or possibly some building instead if youre not particularly ambitious with your code. |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | | Top |
|
| Posted by
| Ithildin
USA (262 posts) Bio
|
| Date
| Reply #5 on Thu 23 Jan 2003 07:17 PM (UTC) |
| Message
| yea, i was afraid of that. would i have to go in and delete all the authorization functions and stuff to get rid of that command? eventhough i don't know alot about code, i'm a very quick learner and i know enough to get by. plus i'm ambitious...heh.
Thanks,
Ithildin | | Top |
|
| Posted by
| Ithildin
USA (262 posts) Bio
|
| Date
| Reply #6 on Thu 23 Jan 2003 08:56 PM (UTC) |
| Message
| | hrm, i've been thinking about this. if i could just use the room, where the mob advances the player, to just have an mprog or rprog in it to get the race of the player and send them to there respectful homes. would that work? | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #7 on Thu 23 Jan 2003 09:26 PM (UTC) |
| Message
| | Yes, why not just change the way the mob advances you to level 2? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Ithildin
USA (262 posts) Bio
|
| Date
| Reply #8 on Thu 23 Jan 2003 09:39 PM (UTC) |
| Message
| yea, thats what i'm tryin to do now. i'm tryin to figure all these mop triggers out. what i do is:
mpedit mistress add rand 100
Build: Ithildin: (mset) mpedit mistress add rand 100
Build: Ithildin: mpedit mistress add rand 100
Begin entering your text now (/? = help /s = save /c = clear /l = list)
-----------------------------------------------------------------------
> Done.
if race($r) == dwarf
> mptransfer $r 6500
> endif
> /s
No victim selected. Type '?' for help.
this is what it gives me when i try to do anything in the buffer. the mob is flagged prototype and all.
i look at the /? file and it didn't really show me anything:
-----------------------------------------------------------------------
> Done.
/?
Editing commands
---------------------------------
/l list buffer
/c clear buffer
/d [line] delete line
/g <line> goto line
/i <line> insert line
/r <old> <new> global replace
/a abort editing
/! <command> execute command (do not use another editing command)
/s save buffer
i cleared the buffer with the done at the beginning trying this also, still can't save it.
any thoughts?
| | Top |
|
| Posted by
| Meerclar
USA (733 posts) Bio
|
| Date
| Reply #9 on Thu 23 Jan 2003 09:54 PM (UTC) Amended on Thu 23 Jan 2003 09:56 PM (UTC) by Meerclar
|
| Message
| For starters, a random prog probly isn't going to give you the results you want here. Best way to handle this is use either a grall or speech triggered prog.
The prog code itself is also slightly off as well since everything is targeting a random character.
Try this instead on a grall trigger:
if race $n = dwarf
mptransfer $n 6500
endif
Add a similar check for each pc race with the proper transfer destination and you should be ready to rock.
Using a random check is going to give very unusual results if you have more than one person in the room at a time and it doesnt grab the same target with both the race check and the transfer part of the prog. |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | | Top |
|
| Posted by
| Ithildin
USA (262 posts) Bio
|
| Date
| Reply #10 on Thu 23 Jan 2003 10:15 PM (UTC) |
| Message
| Build: Ithildin: (mset) mpedit mistress add allgreet
Build: Ithildin: mpedit mistress add allgreet
Begin entering your text now (/? = help /s = save /c = clear /l = list)
-----------------------------------------------------------------------
> Done.
/c
Buffer cleared.
> if race $n == dwarf
> mptransfer $n 6500
> endif
> /s
No victim selected. Type '?' for help.
i'm still getting the no victem message. i'm not sure what i need to put on the end.
thanks for all the help guys
Ithildin
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #11 on Thu 23 Jan 2003 10:28 PM (UTC) |
| Message
| | Load up the file into Notepad and find the appropriate program, and just type it in. Or, use the Area Editor from this site that lets you edit mob programs. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Ithildin
USA (262 posts) Bio
|
| Date
| Reply #12 on Thu 23 Jan 2003 11:23 PM (UTC) |
| Message
| alright, thanks nick, i feel kind of dumb for not thinkin about that. ok, so now i've put in a speech prog:
> act_prog $n has entered the game~
say Tell me your race and I will take you to your homeland young one!
~
> speech_prog dwarf~
if race($n) == dwarf
mptransfer $n 6500
t $n Good luck young one!
Endif
If race($n) != dwarf
say &rYou are not a dwarf! How dare you insult me!
Slap $n
Glare $n
Endif
now when the player enters the game, he gets three messages. how is it doing this?
Galindin has entered the game.
Mistress Tsythia says 'Tell me your race and I will take you to your homeland young one!'
Mistress Tsythia says 'Tell me your race and I will take you to your homeland young one!'
Mistress Tsythia says 'Tell me your race and I will take you to your homeland young one!'
any suggestions?
Ithildin | | Top |
|
| Posted by
| Meerclar
USA (733 posts) Bio
|
| Date
| Reply #13 on Fri 24 Jan 2003 12:14 AM (UTC) |
| Message
| | Paste us the exact text the mob sees and we might can figure something out. |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | | Top |
|
| Posted by
| Ithildin
USA (262 posts) Bio
|
| Date
| Reply #14 on Fri 24 Jan 2003 12:19 AM (UTC) Amended on Fri 24 Jan 2003 12:23 AM (UTC) by Ithildin
|
| Message
| Galindin has entered the game.
You say 'Tell me your race and I will take you to your homeland young one!'
You say 'Tell me your race and I will take you to your homeland young one!'
You say 'Tell me your race and I will take you to your homeland young one!'
i switched to be the mob and it just said that.
and also when the player exits the room and comes back the mob says it again:
Galindin arrives from the north.
You say 'Tell me your race and I will take you to your homeland young one!'
but only once.
i also tried
< act_prog p has entered the game.~
say Tell me your race and I will take you to your homeland young one!
~
but it didn't even show up when i tried it.
i have all the mprogs that i put in, in the last message i sent. | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
57,000 views.
This is page 1, subject is 2 pages long: 1 2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top