@everyone.
I think I might just quit.
This project is very quiet. There is hardly time to work on it for anyone, and people that have lots of time to work on it, dont have the required skills (like me), so ill try and learn more, and ill check back in every now and then.
-andy
errrrr problem when ive added code i dont see NPC and when i type /spawn command it doesnt work also can anyone help out? the code is correct i think... maybe my client.....
ranny2> thnx man, i didn't have time to test it but i think this must work.
Btw, if u whana spawn more NPC's simple change theyer ID's coz u can't spawn more then 1 NPC with the same ID =]
thnx again, for help
IDEO
Originally posted by ranny2@Jul 22 2006, 02:56 I added an NPC that is static (always there ^^)
Example, though it needs more work:
Code:
int x_min = Char.CurrentLoc.X - VIEWTHRESHOLD;
int y_min = Char.CurrentLoc.Y - VIEWTHRESHOLD;
int x_max = Char.CurrentLoc.X + VIEWTHRESHOLD;
int y_max = Char.CurrentLoc.Y + VIEWTHRESHOLD;
if (Client.Char.Map == Maps.TwinCity)
{
if (x_min <= (438 + 10) && x_max >= (438 - 10) && y_min <= (377 + 10) && y_max >= (377 - 10))
{
Client.SendData(PacketBuilder.Message(Client.MessageID, "Alert", Client.Char.Name, "You are in Range of NPC. ", ChatType.Top));
int Guard_ID_I = Convert.ToInt32(617478);
int Guard_Model_I = Convert.ToInt32(224);
int Guard_x_I = Convert.ToInt32(438);
int Guard_y_I = Convert.ToInt32(377);
Client.SendData(PacketBuilder.SpawnGuard(Guard_ID_I, Convert.ToInt32(224), Guard_x_I, Guard_y_I));
}
}
At the moment it suports on 1 npc, cause it only a basic function atm.
I must ask..
This code, by looking at it, wouldnt it only respawn the NPC once you get close to it?
Yes, that would work, but think. What if you use that code to spawn a monster, then say if you were attacking a monster, then when another player came on screen, the monster would appear as new to the other player, correct?
hmmmmm yea...... it will respawn the monster.... this way its a lill buged..... but works for npc.... about the mobs... we should work a way to just put it there... so it wont keep respawning when a player gets in its sight
ive found anouther bug.... when i attack other player..... i kill him ... and after that he lies on the ground..... i hit him one more time... and he stands up and then again lies lol and when he lies and i switch to him and move.... he just stands up like he isnt dead lol
(sorry for tripple post)
Lostsoldier08 i cant get that command working also and the /spawn thing also...... neither ranny2 command.... dont know might be from out client....
Edit your posts ftw!
Anyhow, first post
-> I think it is possible another way. When u attack it sends attack packet, so perhaps adding a thing that reads hp from a db..
Second post, it simply doesnt send the death packet, it was never implemented yet..
Third, make sure u guys have the packet in ur packet builder.
the /spawn command that says "Entity spawned" simply refreshes your screen.