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

Re: FOnline SDK - Question
« Reply #120 on: May 21, 2011, 06:20:45 am »
Where can i get that draw text??

Offline Mayck

  • Rotator
  • ...shhhh...
Re: FOnline SDK - Question
« Reply #121 on: May 21, 2011, 11:43:39 am »
Where can i get that draw text??

In client_main.fos
edit render_iface function so it looks like this
Code: [Select]
... code ...
void render_iface(uint layer)
{
if(layer == 3)
{
//next 3 lines were added
uint16 hexX=0, hexY=0;
GetMonitorHex(__MouseX, __MouseY, hexX, hexY);
DrawText("Hex: "+hexX+" "+hexY,__ScreenWidth-100,20, 100, 20, 0, FONT_FALLOUT, FT_CENTERR);

DrawChosenTabs();
... code ...
that should do the trick

Offline barter1113

  • New Vegas fanatic =)
Re: FOnline SDK - Question
« Reply #122 on: May 22, 2011, 06:58:42 pm »
How all script should look? Can someone put here drawtext?

Offline Surf

  • Moderator
  • это моё.
Re: FOnline SDK - Question
« Reply #123 on: May 22, 2011, 07:01:17 pm »
Mayck posted everything you need already.  ::)

Re: FOnline SDK - Question
« Reply #124 on: May 28, 2011, 07:52:44 am »
How can i add slavery back in TLA?

edit: After i did what Mayec sayed i can't see my inv or annything like this.Can you give me a copy from your client main?
« Last Edit: May 28, 2011, 08:10:24 am by BlindMaster »

Offline Mayck

  • Rotator
  • ...shhhh...
Re: FOnline SDK - Question
« Reply #125 on: May 28, 2011, 11:05:37 am »
How can i add slavery back in TLA?
If i remember correctly, it was never there, so you can't simply add it back. Unless you script it...

edit: After i did what Mayec sayed i can't see my inv or annything like this.Can you give me a copy from your client main?
You didn't delete this line, did you?
GUI_Render();

Re: FOnline SDK - Question
« Reply #126 on: May 28, 2011, 11:57:01 am »
How to place armed NPC?
« Last Edit: May 28, 2011, 12:20:45 pm by BlindMaster »

Offline Surf

  • Moderator
  • это моё.
Re: FOnline SDK - Question
« Reply #127 on: May 28, 2011, 12:41:03 pm »
Place NPC in mapper on the spot where you want them, give them bags, or add manually weapons to their inventory. Alt click to give stuff to them, shift click on weapon to arm them with weapon.

Re: FOnline SDK - Question
« Reply #128 on: May 28, 2011, 01:31:56 pm »
Alt click to give stuff to them, shift click on weapon to arm them with weapon.
Nothing Happens! Just start talking to them

And yes!I am loged

Offline Crazy

  • Drugged Childkiller
Re: FOnline SDK - Question
« Reply #129 on: May 28, 2011, 02:08:30 pm »
Nothing Happens! Just start talking to them

And yes!I am loged

In the mapper...
When you have to shoot, shoot, don't talk

Member of the Most Hated Faction
TTTLA, for Great Justice !

Re: FOnline SDK - Question
« Reply #130 on: May 28, 2011, 02:47:54 pm »
how to add my location to map?

Offline jan0s1k

  • If it bleeds we can kill it...
    • Chosen Soldiers
Re: FOnline SDK - Question
« Reply #131 on: May 28, 2011, 11:40:55 pm »
Question maybe to Mayck, maybe to FO2238 scripters:
How could I get something only for moder/admin access?
I tried for example:
Code: [Select]
void render_iface(uint layer)
{
if(layer == 3)
{
CritterCl@ chosen = GetChosen();
if(chosen.GetAccess()==ACCESS_ADMIN){
uint16 hexX=0, hexY=0;
GetMonitorHex(__MouseX, __MouseY, hexX, hexY);
DrawText("Hex: "+hexX+" "+hexY,__ScreenWidth-100,20, 100, 20, 0, FONT_FALLOUT, FT_CENTERR);
}

DrawChosenTabs();
GUI_Render();
}

But it seems, that it doesn't work (shouting something about not existing CritterCL.GetAccess function or something..)


Offline Mayck

  • Rotator
  • ...shhhh...
Re: FOnline SDK - Question
« Reply #132 on: May 29, 2011, 12:01:15 am »
GetAccess works only for Critter not CritterCl, because Critter and CritterCL are two different classes (they do not inherit anything between themselfs, though they might look similiar.)

I am using some unused parameter to get the access level client-side.

Re: FOnline SDK - Question
« Reply #133 on: May 29, 2011, 10:38:54 am »
If i remember correctly, it was never there, so you can't simply add it back. Unless you script it...

OK.THen how to make an NPC fallow me and fight with me??

Offline Surf

  • Moderator
  • это моё.
Re: FOnline SDK - Question
« Reply #134 on: May 29, 2011, 10:42:34 am »