Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
69 user(s) are online (34 user(s) are browsing Forum)

Members: 0
Guests: 69

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +5€

Current balance: -60€
(last updated 10/2020)

Please make a donation if you want to help keeping The-Starport online:

Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 32 users playing Freelancer on 42 servers.
January. 22, 2021

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post



What is the code to know the reputation of an object
Not too shy to talk
Joined:
2011/8/3 19:16
Group:
Registered Users
Posts: 88
Offline
Hi,
I want to know the reputation of an object selected by the player.

Code:
[Object] 
nickname = Br01_03 
ids_name = 196660 
pos = -33822, 0, 52837 
rotate = 0, 30, 0 
archetype = b_battleship 
ids_info = 65713 
base = Br01_03_Base 
dock_with = Br01_03_Base 
reputation = br_n_grp
behavior = NOTHING 
voice = atc_leg_f01 
space_costume = pl_female1_head, br_female_elite_body difficulty_level = 7 
loadout = br_battleship_br_01 
pilot = pilot_solar_hard

For example, this object has the reputation "br_n_grp"

My code :
Code:

uint iShip; 
pub::Player::GetShip(iClientID, iShip);
uint iTarget; 
pub::SpaceObj::GetTarget(iShip, iTarget);

????

wstring TargetFaction;

PrintUserCmdText(iClientID, L"%s", TargetFaction.c_str() );


Posted on: 2012/1/20 19:44
Top
Re: What is the code to know the reputation of an object
Home away from home
Joined:
2008/2/17 23:28
From new jersey usa
Group:
Registered Users
Senior Members
Posts: 907
Offline
i domt under stand the question there is no code maybe you mean universe ini there you find somethinglike this

[Base]
nickname = Li05_06_Base
system = Li05
strid_name = 196792
file = Universe\Systems\Li05\Bases\Li05_06_Base.ini
BGCS_base_run_by = W02bF34
i use freelancer explorer its done for you with that

Posted on: 2012/1/21 18:27
Open in new window
Top
Re: What is the code to know the reputation of an object
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 3520
Offline
sabatino, look at the forum you're posting in. This is FLHook development, yes there will be C++ code.

Posted on: 2012/1/21 20:54
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try."
-Peggy Noonan
Top