Quote:
Originally Posted by Turkic
How do I setup a website? my server VDS IP based on, but me I want to build on top of the website. PLEASE HELP
|
I (probably we) can't understand you, try to get a better translator or even hire a teacher... English is important now at days
Quote:
Originally Posted by oleg-19952008
Can't create mob, send a packet of the type "0|C|alienid|alienship|1||alienname|posx|posy| |-1|0|0|1|0" mob appears but I can't take aim at him and shoot him.
What other packages you need so that it could shoot?
|
When you select a player (or npc it doesn't matter) the server receives a packet something like..
Code:
SEL|playerID(npcID)
So you should send back another packet, with this structure:
Code:
0|N|PlayerID(or npcID)|shipID|hp|maxHp|shield|MaxShield|isCloacked(bool)
Something similar with the attack... when you click on the npc and the npc is selected correctly (the packet above) and hit Ctrl (attack button) the server receives:
Code:
a|playerID(or npcID)
and like above you should send back another packet with this structure:
Code:
0|a|playerID|targetID|laserGFX|1|1
The last 1|1 (bool) are pilotSheet skills, fat lasers or the cool shield, test it i don't remember it. And laserGFX means the graphic, ex, 0=red laser, 1=blue laser, 2=green laser, ...
Of course
it won't do any damage, it's only the graphical effect, you should do all the correspondient calculations on the server, etc...
Regards