Author Topic: FOnline SDK - Question  (Read 148088 times)

Offline Plech

  • I'm a loner.
Re: FOnline SDK - Question
« Reply #330 on: February 23, 2013, 03:04:20 pm »
hello guys, i have a lil question. anyone knows how to change the color of location map cyrcle? for example on 2238 is blue cyrce as tent.
alias Pic Ho.

Re: FOnline SDK - Question
« Reply #331 on: February 23, 2013, 03:50:40 pm »
if "loc" is Location@

Code: [Select]
loc.Color = COLOR_CHANGE_ALPHA(COLOR_RGB(0,0,0xC8), 70);
and it should be blue. Cheers.

(COLOR_CHANGE_ALPHA(...) is taken from scripts/_colors.fos btw)
« Last Edit: February 23, 2013, 03:53:57 pm by Kilgore »

Offline Plech

  • I'm a loner.
Re: FOnline SDK - Question
« Reply #332 on: February 23, 2013, 05:01:36 pm »
yeah i found it there, but i dont know where to place it
alias Pic Ho.

Re: FOnline SDK - Question
« Reply #333 on: February 23, 2013, 09:59:10 pm »
And how to change the timer for skills ? It's really annoying u_________________u

Offline Berko

  • Tim Tom Ted
    • http://kabefis.deviantart.com/
Re: FOnline SDK - Question
« Reply #334 on: February 24, 2013, 11:12:43 am »
search in the "defines" file, search for "timeout" and you will find what you want.
You can find example in "main" file (where all start) and search the function critter_use_skill (call when .. critter use skill)
~~~ Ashes of Phoenix project --> http://fonline-aop.net/ ~~~

Re: FOnline SDK - Question
« Reply #335 on: February 24, 2013, 02:38:27 pm »
Thanks a lot :D !

Re: FOnline SDK - Question
« Reply #336 on: February 26, 2013, 04:49:11 pm »
Another question:
I'm using the dialog editor to create mercenary (it works well) but when they spawn, they don't wear any armor or guns (they are currently configured with Sulik's AI & they have a leather armor + Hunting rifle & ammo in their inventory).
Do i have to use something special in the dialogeditor to make them use their inventory ?

Re: FOnline SDK - Question
« Reply #337 on: February 27, 2013, 02:34:30 am »
NPCs with bags seem to be equipped, not sure if armor works. If you're using a sulik pid he will not look like he has armor. I wouldnt bother with it more then giving npcs a bag and setting up custom rates for armor.

Re: FOnline SDK - Question
« Reply #338 on: March 24, 2013, 07:51:06 am »
How do I remove the flower I get every time I respawn?
or change it to another object?

JovankaB

  • Guest
Re: FOnline SDK - Question
« Reply #339 on: March 24, 2013, 07:58:43 am »
How do I remove the flower I get every time I respawn?
or change it to another object?

replication.fos, look for this line:

Code: [Select]
                _CritAddItem( cr, PID_FLOWER, 1 );
and remove it or change it to another PID.

How did I find it? I searched for "flower" in the replication module.
Ability to find stuff on your own is the most important skill if you want to mess with SDK.
« Last Edit: March 24, 2013, 08:01:30 am by JovankaB »

Re: FOnline SDK - Question
« Reply #340 on: March 24, 2013, 08:10:31 am »
Thank you so much  ;D

Re: FOnline SDK - Question
« Reply #341 on: March 24, 2013, 12:50:28 pm »
On the map editor how can i set grids? i mean when i walk on the green grid it goes to the next map how do i do that?

Offline Lexx

  • Rotator
  • Mexican Apple Thief
Re: FOnline SDK - Question
« Reply #342 on: March 24, 2013, 04:24:01 pm »
The green grid is just show. You will have to place EG objects and define the target map there.

Re: FOnline SDK - Question
« Reply #343 on: March 25, 2013, 02:03:18 pm »
How do i remove hell so i can just respawn at the nearest replication?

Re: FOnline SDK - Question
« Reply #344 on: April 04, 2013, 08:21:57 am »
How do i remove hell so i can just respawn at the nearest replication?

The replication.fos script removes money from the ST_REPLICATION_COST every time you die.  If that stat is below 0 when you die, it replicates you to Hell.

Code: [Select]
if( not dieMapIsHell )
            {
                cr.StatBase[ ST_REPLICATION_MONEY ] -= cr.Stat[ ST_REPLICATION_COST ];
                _CritAddItem( cr, PID_FLOWER, 1 );
                if( cr.Stat[ ST_REPLICATION_MONEY ] >= 100 )
                    _CritAddItem( cr, PID_RADIO, 1 );                                                // Add radio
            }

The easiest fix for the time being is to set the [ST_REPLICATION_COST] to 0 in main.fos, so it will never go below 0 when you die.

You could change the replication script entirely, but this will achieve the desired result.
Iguana Pete's sister