FOnline Development > Questions and Answers

FOnline SDK - Question

<< < (23/93) > >>

Xarr:
my fault, many FOnliner do not know...  ::)
Ni
I like saying it, coz Rusty 's Awsomenes in person xD

BlindMaster:
How do i addd Npc where i want whitout using the editor???
How do i know what hex is he going to appear???

Mayck:

--- Quote from: BlindMaster on May 20, 2011, 01:39:14 pm ---and how do i give myself a skin?

--- End quote ---
~runscript debug body <critterId> <skinId> 0


--- Quote from: BlindMaster on May 20, 2011, 08:17:05 pm ---How do i addd Npc where i want whitout using the editor???

--- End quote ---
~addnpc <x> <y> <direction> <npcProtoId>


--- Quote from: BlindMaster on May 20, 2011, 08:17:05 pm ---How do i know what hex is he going to appear???

--- End quote ---
Either you can experiment with ~move command to figure out right coordinates or you can try to write a simple script for that. (maybe there's some other way, I'm not sure about that)

Xarr:

--- Quote from: Mayck on May 20, 2011, 08:35:21 pm ---Either you can experiment with ~move command to figure out right coordinates or you can try to write a simple script for that. (maybe there's some other way, I'm not sure about that)

--- End quote ---
~gameinfo 1
You will see some informations, a bit down and left in the message you see the X and Y of the actual listed Player. So you want (example) a NCP near you you type ~addnpc (X-1) (Y) (ID) (ID) and you have (ID) next to you.

Mayck:
or you can try this (simple script editing):

--- Code: ---if(message=="~xy")
{
uint16 hexX=0, hexY=0;
GetMonitorHex(__MouseX, __MouseY, hexX, hexY);
Message("Hex: "+hexX+" "+hexY);
return false;
}

--- End code ---
If you add it into client_main.fos right behind the if(message[0]=="~names"){...<somelines>...} block.
Then everytime you type ~xy you will get X Y coordinates of your mouse. (There are more elegant ways to deal with it, but this is one of the simpliest)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version