some problems 5517

05/01/2012 18:49 zoro7070#1
i want a code to call the monster by its id not the name for trinity source
and when i talk to the npc who put the souls into items the windows open and close immeditly (was working fine)
05/01/2012 19:09 turk55#2
Look how the name is added, based on that add the part for the id.
05/01/2012 20:30 shadowman123#3
Replace Name with UID its too much simple ..u couldnt even try to work on it

just Implenet it from any other working source
05/01/2012 20:37 |xabi|#4
totally agreed with shadowman123
05/01/2012 21:23 zoro7070#5
i want only to be sure that is the right way to make it
i mainly make that post for the second problem
thanks shadowman123 and |xabi| u know always Egyption like the easy way.
05/01/2012 21:40 ×Holo#6
Quote:
Originally Posted by zoro7070
always Egyption like the easy way.
You shouldn't say.. :facepalm:
05/01/2012 21:55 turk55#7
Quote:
Originally Posted by shadowman123 View Post
Replace Name with UID its too much simple ..u couldnt even try to work on it

just Implenet it from any other working source
No, that won't change anything but naming it different.
It won't affect anything else and he will probably end up making a new thread asking for help, instead of reading my reply...
05/02/2012 00:26 shadowman123#8
Quote:
Originally Posted by turk55 View Post
No, that won't change anything but naming it different.
It won't affect anything else and he will probably end up making a new thread asking for help, instead of reading my reply...
you miss understood what he want to do he said calling Monster using another Variable rather than name so UID or Mesh would be His Choise and i go for UID ...so Through monster UID Would work Efficiently

Quote:
Originally Posted by zoro7070 View Post
i want only to be sure that is the right way to make it
i mainly make that post for the second problem
thanks shadowman123 and |xabi| u know always Egyption like the easy way.
i dont like easy ways btw i like the most efficient way which create what i want
Beisde that No Egyptians only would do that every1 in this world would do the same

Your 2nd Problem ... try to check how it works in other sources and implement it in Your source
05/02/2012 00:44 turk55#9
Quote:
Originally Posted by shadowman123 View Post
you miss understood what he want to do he said calling Monster using another Variable rather than name so UID or Mesh would be His Choise and i go for UID ...so Through monster UID Would work Efficiently



i dont like easy ways btw i like the most efficient way which create what i want
Beisde that No Egyptians only would do that every1 in this world would do the same

Your 2nd Problem ... try to check how it works in other sources and implement it in Your source
As far as i understood he wants do to this basically
Code:
if (monster.id == 4152)
{
}
and that wont happen with what you said
05/02/2012 01:29 shadowman123#10
Quote:
Originally Posted by turk55 View Post
As far as i understood he wants do to this basically
Code:
if (monster.id == 4152)
{
}
and that wont happen with what you said
UID is Already Existed in The Database so he can Call it using UID
05/02/2012 08:51 I don't have a username#11
You should never get a monster by its name anyway, unless it was for a cmd that GM's could use to spawn or something, but even then you shouldn't.

Checking up for an integer is much faster than checking up a string.

@OP
Your monster class must have something like Mob.ID instead Mob.Name. It would be weird if you only stored monsters by name in a dictionary.
05/02/2012 16:04 zoro7070#12
i make it by using the id thanks all
but i want the solve for the second problem
05/03/2012 03:04 shadowman123#13
Quote:
Originally Posted by I don't have a username View Post
You should never get a monster by its name anyway, unless it was for a cmd that GM's could use to spawn or something, but even then you shouldn't.

Checking up for an integer is much faster than checking up a string.

@OP
Your monster class must have something like Mob.ID instead Mob.Name. It would be weird if you only stored monsters by name in a dictionary.
y i shouldnt do this .. in the monstertable in impulse source it Checks the monster using its Name
05/06/2012 15:16 zoro7070#14
any idea about how to solve my second problem

that window open and close immediately
[Only registered and activated users can see links. Click Here To Register...]