Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
Elves issue
|
Author |
Message |
admin phoenix
Master
Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3
|
RE: Elves issue
there are more than one solution for it
The easiest way is that every one that create a char with the hardcoded charcreation will start in a room where you different gates. one for human and one for elven.
the gates have to be triggert.
another way is that you change your mul files /gumps so that you cannot choose the elven on the hardcoded charcreation.
your second question about the clothing.
solution 1:
you have to trigger the clothes with
on=@equiptest
and check, if his a a elven (like the body or with for example tag0.race=1 // 1 = elven
another is, that you give the elven clothing a tag like tag.race=1 and check it via an event on the char and also the equiptest trigger
you see, there are several way and I think there a more solution I wrote down here
gr
phoenix
|
|
03-30-2012 08:33 PM |
|
|
Incanus
Apprentice
Posts: 2
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2012
Reputation: 0
|
RE: Elves issue
Take a look at the f_onchar_create function in sphere_serv_triggers.scp
You could do something like this:
Code:
// This function is called after client have created a new char.
// SRC --> char being created
// ARGN1 --> flags
// ARGN2 --> profession chosen
// ARGN3 --> elf
// ARGS --> account name
// ARGO --> the client creating the character
[FUNCTION f_onchar_create]
IF <SRC.OBODY>==c_elf_male
SRC.OBODY c_man
SRC.BODY c_man
ELSEIF <SRC.OBODY>==c_elf_female
SRC.OBODY c_woman
SRC.BODY c_woman
ENDIF
There are still missing checks for hair/beard and skin color ..
|
|
03-30-2012 08:38 PM |
|
|
User(s) browsing this thread: 1 Guest(s)