[Help]Alot How To

09/18/2008 15:59 elragal_30#1
hii all
I regret if my questions many something
But I largely canceled out in the Junior C Sharp(I'm beginner at C# code) and I want to learn a lot about

1 - How can the data retrieved (get data)from the row on the agenda(Table) in the database and how it can be developed with data / not change its (how i can add with/out change data in this row)[i know it wit SQl but i need it with C#]

2 - looked for the reason why the skills transfer, or call one or a monster with no given that only white smoke, but lest conversion

3 - How to Get the name of the killer, such as when to die
player a has killed by baler b??

4 - if you can help me on C-Sharp here or via MSN or YAHOO Thank you
Thank you for all
translate By Google translator
09/18/2008 16:12 keving#2
SendPacket(General.MyPackets.Vital(MyChar.UID, <ID>, <VALUE>));
Quote:
Unknown1 = 1,
MP = 2,
Unknown = 3,
Gold = 4,
Exp = 5,
PKP = 6,
JobClass = 7,
Blessed = 8,
Stamina = 9,
HP = 10,
StatPoints = 11,
Model = 12,
Level = 13,
Spirit = 14,
Vitality = 15,
Strength = 16,
Agility = 17,
BlessedTime = 18,
DoubleExpTime = 19,
CursedTime = 21,
SecondRebornRings = 23,
AllTheCall = 26,
Hair = 27,
XpCircle = 28,
LuckyTime = 29,
Cp = 30,
09/18/2008 16:47 elragal_30#3
Quote:
Originally Posted by keving View Post
SendPacket(General.MyPackets.Vital(MyChar.UID, <ID>, <VALUE>));
alot thanks for this
this is all vitals?
what u mean by "All the call"???
and r u know how i can add or call some thing from row ??
09/18/2008 18:28 Rechocto#4
elragal, before your next post, please refer to my first response at:

[Only registered and activated users can see links. Click Here To Register...]
09/18/2008 20:25 elragal_30#5
Quote:
Originally Posted by Rechocto View Post
elragal, before your next post, please refer to my first response at:

[Only registered and activated users can see links. Click Here To Register...]
First :
thanks for this idea
but you are Wrong
Because Google translate is not good
it can't translate sentence
i'm Arabic and your Google translate is mean nothing
so i use IE Spell checking but only we use Co Short words lol
but thanks any way
09/18/2008 21:16 Rechocto#6
google translate does arabic.


يمكنك استخدام صور للترجمة العربية. وهذا مثال على هذا الاساس. انا لا اتكلم العربية على الاطلاق ، ولا يمكن قراءة ما يقال هنا. وكان هذا المتولده عن صور.
09/18/2008 22:00 elragal_30#7
Quote:
Originally Posted by Rechocto View Post
google translate does arabic.


يمكنك استخدام صور للترجمة العربية. وهذا مثال على هذا الاساس. انا لا اتكلم العربية على الاطلاق ، ولا يمكن قراءة ما يقال هنا. وكان هذا المتولده عن صور.
hey i don't say that google don't translate Arabic
but ask any arabic one if he understand what you say at your another post ,tell me
Google translate word by Word so it not use grammar and also don't affect with Sentence form
see when i translate you Arabic to English with Google
Quote:
The attention of everyone: for future reference - if you do not speak English type your message * true at the pictures in language interpretation and translation of the English .. It will be better than doing Rules (statistically speaking to this forum, not discrimination or prejudice against non-English speakers) - Thank you.
it is low different but believe me that in Arabic it is meaningless because one Word at English have alot different meaning in Arabic and Google cannot know what mean u want
09/18/2008 22:41 konkizta#8
Quote:
Originally Posted by keving View Post
SendPacket(General.MyPackets.Vital(MyChar.UID, <ID>, <VALUE>));
thanks:D
09/19/2008 11:18 Rechocto#9
Quote:
Originally Posted by elragal_30 View Post
hey i don't say that google don't translate Arabic
but ask any arabic one if he understand what you say at your another post ,tell me
Google translate word by Word so it not use grammar and also don't affect with Sentence form
see when i translate you Arabic to English with Google

it is low different but believe me that in Arabic it is meaningless because one Word at English have alot different meaning in Arabic and Google cannot know what mean u want
however going back TO English from Arabic, statistically speaking.. it should have better grammar ad sentence structure than a lot of not-very-well-English-speaking Arabs =)
09/19/2008 17:45 elragal_30#10
Thank you for your suggestion
I hope that everyone is doing it
I start myself and I Use Google translator now
But there are those who speak English and do not use rules and using abbreviations
Overall: Thank you once again
This is not about that but I ask for help
Will re-write the subject again through an interpreter Google
09/19/2008 21:32 Rechocto#11
Quote:
1 - How can the data retrieved (get data)from the row on the agenda(Table) in the database and how it can be developed with data / not change its (how i can add with/out change data in this row)[i know it wit SQl but i need it with C#]
Check out Character.GetCharInfo() for an example

Quote:
2 - looked for the reason why the skills transfer, or call one or a monster with no given that only white smoke, but lest conversion
In most sources that's all that has been coded in. You will have to change their model (MyChar.Model = ) and then their stats, and at the end of the skill (You will have to determine when the skills add and code that in yourself) set the model back to the original (will either be 1001 (small male) 1002 (large male) 2001 (small female) or 2002 (large female)) and also turn the stats back to normal.

after changing the model you will want to:
Code:
SendPacket(General.MyPackets.Vital(MyChar.UID, 12, ulong.Parse(MyChar.Avatar.ToString() + MyChar.Model.ToString())));
World.UpdateSpawn(MyChar);
and when updating stats don't forget:
Code:
SendPacket(General.MyPackets.Vital(MyChar.UID, 26, MyChar.GetStat()));
Quote:
3 - How to Get the name of the killer, such as when to die
player a has killed by player b??
find PTarget.GetHitDie(); in your "Attack" and where damage is calculated in your UseSkill(), and add it there.. Or putting it inside GetHitDie() would require you to add a "string AttackerName" variable to the GetHitDie() function and adding that in to everywhere that GetHitDie() is called


hope this helped :)
09/20/2008 02:20 elragal_30#12
thanks
about attacker
i know that i have to add string variable at Die() or GetHitDie() but
i want to know how i can get this name
i try to put PTarget and TGtarget both not Work
(i think Ptarget >> me that attacked not attacker ,and TGTarget is may about TG stacks and scarecrow )
sorry i search alot on all variable and i can't find it

i also want to know how i can make quest work at specified time ???
sorry for if it is noob questions
thanks all
09/20/2008 02:33 Rechocto#13
GetHitDie(uint Damage, string AttackerName)


now rightclick GetHitDie and click Find All References..

now double click them 1 by 1, and each one will have somthign like "Target.GetHitDie(DMG)", change it to "Target.GetHitDie(DMG, Name)"
09/20/2008 04:32 elragal_30#14
i make this but it not work
i try but it say :
Quote:
Error 2 The name 'AttackerName' does not exist in the current context
i note that GetHitDie
is some times
Quote:
public bool GetHitDie(uint Damage)
or
Target.GetHitDie((uint)DMG,Name)
and if i put string AttackerName i think i must put it again to get it value
like AttackerName= xxx
that is what i mean where i can get its value
thanks
09/20/2008 04:37 Rechocto#15
Quote:
Originally Posted by elragal_30 View Post
i make this but it not work
i try but it say :
Quote:
Error 2 The name 'AttackerName' does not exist in the current context
i note that GetHitDie
is some times
Quote:
public bool GetHitDie(uint Damage)
or
Target.GetHitDie((uint)DMG,Name)
and if i put string AttackerName i think i must put it again to get it value
like AttackerName= xxx
that is what i mean where i can get its value
thanks
Code:
public bool GetHitDie(uint Damage)
needs to be
Code:
public bool GetHitDie(uint Damage, string AttackerName)