![]() |
|
Got a couple of questions - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: Got a couple of questions (/Thread-Got-a-couple-of-questions) Pages: 1 2 |
Got a couple of questions - Leonidas - 05-31-2013 06:45 AM I forgot where the starting point for a new character is located, I tried changing sphere_map_points but it didn't do a thing. Also, I want to put an event on every new character, i figured it was in the serv triggers but i got no luck doing that, but i probably did it wrong. Thanks for any help RE: Got a couple of questions - RanXerox - 05-31-2013 06:54 AM I use the f_onchar_create function in the sphere_serv_triggers.scp file for that sort of thing. RE: Got a couple of questions - Leonidas - 05-31-2013 07:16 AM Yeah thats what I just tried a little harder this time and got it Thanks man
RE: Got a couple of questions - larmc20 - 06-06-2013 03:43 AM I am having a problem to start a dialog when some player create a new char!! I don't know how to add the FUNCTION f_onchar_create. well... I have this: PHP Code: // This function is called before server is going to save.AND THE DIALOG I WANNA START ON CREATE CHAR. PHP Code: [DIALOG d_cadastros]What have I got to do to make it work? I tried to add the function on the script but it didnt work. RE: Got a couple of questions - darksun84 - 06-06-2013 04:08 AM f_onchar_create should be already present in the same file of f_onserver_save ! PHP Code: // This function is called after client have created a new char.RE: Got a couple of questions - larmc20 - 06-06-2013 07:20 AM thanks man. But Actually It is not working. If I type on admin acc .f_onchar_create it works. But when i create a New player it does not work... I dont know RE: Got a couple of questions - RanXerox - 06-06-2013 08:31 AM That function runs before the character is technically in-game... Perhaps try @Login if you want to launch a dialog. RE: Got a couple of questions - darksun84 - 06-06-2013 08:42 AM (06-06-2013 07:20 AM)larmc20 Wrote: thanks man. But Actually It is not working. ahh actually there is no default object in f_on_char_create (just src for the character), so you'll have to use src.timerf ! RE: Got a couple of questions - larmc20 - 06-06-2013 12:22 PM Yes Mate. With SRC.TIMERF 3, src.dialog.... Worked... Thanksss RE: Got a couple of questions - dagger4k - 06-06-2013 05:00 PM For adding events to all players you can add it through the sphere.ini Code: // Events related to all NPCsYou just have to make sure you have your e_player or e_event somewhere in your scripts. I have noticed that it doesn't show up under show events in game but it is still present on the player. As for opening a new dialogue what you can to is add a @login function to the e_player event. |