![]() |
[Release] RB Guard
As i promissed yesterday, i have to relase my RB Guard code:bandit:
Guard attack players, and give exp to user when he atack mob. I have based on PowerSource. Ok lets begin Start with Character.cs Find: Code:
public SingleMob MobTarget = null;Code:
public SingleMob Guard = null;Code:
if (SkillAttributes[0] == 7)Code:
if (SkillId == 4000 && Stamina >= 100)search for: Code:
public void AddSkillExp(short Type, uint Amount)Code:
if (Type == 4000) Amount = 1;Next part is in Entities.cs Search for: Code:
SingleMob Mob = new SingleMob(spawn_x, spawn_y, Convert.ToInt16(ThisSpawn[7]), uint.Parse(ThisMob[3]), uint.Parse(ThisMob[3]), short.Parse(ThisMob[6]), short.Parse(ThisMob[7]), UID, ThisMob[2], int.Parse(ThisMob[1]), short.Parse(ThisMob[4]), (byte)General.Rand.Next(8), byte.Parse(ThisMob[5]));Code:
SingleMob Mob = new SingleMob(spawn_x, spawn_y, Convert.ToInt16(ThisSpawn[7]), uint.Parse(ThisMob[3]), uint.Parse(ThisMob[3]), short.Parse(ThisMob[6]), short.Parse(ThisMob[7]), UID, ThisMob[2], int.Parse(ThisMob[1]), short.Parse(ThisMob[4]), (byte)General.Rand.Next(8), byte.Parse(ThisMob[5]),0,true);Code:
ExternalDatabase.Mobs = null;Code:
public static void NewRBGuard(short x, short y, short map, uint owner,short glvl)Code:
DateTime LastTargetting;Code:
DateTime LastAtack;Code:
public Timer MyTimer = new Timer();Code:
public Timer MyTimer = new Timer();Code:
public SingleMob(short x, short y, short map, uint maxhp, uint curhp, short minatk, short maxatk, uint uid, string name, int mech, short lvl, byte pos, byte Type)Code:
public SingleMob(short x, short y, short map, uint maxhp, uint curhp, short minatk, short maxatk, uint uid, string name, int mech, short lvl, byte pos, byte Type, uint owner, bool Alive)Code:
public void TimerElapsed(object source, ElapsedEventArgs e)Code:
public void TimerElapsed(object source, ElapsedEventArgs e)Code:
public void GetTarget()Code:
public void Move()Code:
public void GuardMove(short opc)Code:
public void Dissappear()Code:
public void Dissappear()Code:
public void ReSpawn()Code:
public void Gjump()find: Code:
public static void DefineSkills()Code:
SkillAttributes[4000] = new ushort[4][];Code:
public static uint NeededSkillExp(short SkillId, byte Level)Code:
if (SkillId == 4000)search for: Code:
public static bool CharExist(string Needle, string HayStack)Code:
public static Character Charowner(uint uid)search for: Code:
public byte[] SkillUse(Character Charr, Hashtable Targets, Hashtable PTargets, Hashtable NPCTargets, short AimX, short AimY, short SkillId, byte SkillLvl, byte Switch, uint OneTarget, uint TargetDMG)Code:
public byte[] MobSkillUse2(SingleMob Mob, SingleMob Attacked, uint DMG, ushort SkillId, byte SkillLevel)search: Code:
public static void MobDissappear(SingleMob Mob)Code:
public static void GuardReSpawn(SingleMob Mob)BTW post your comments positive or negative. Bisiol Edit1 I forget something:P That fragment is for block you from attacking your guard In Client.cs search: Code:
else if (Target > 400000 && Target < 500000)Code:
else if (Target > 400000 && Target < 500000)Character.cs: search(4 times) for : Code:
if (PKMode == 0 || Mob.MType != 1)Code:
if (PKMode == 0 || Mob.MType != 1 && Mob.MType != 7)Code:
PKMode == 0 || Target.MType != 1Code:
PKMode == 0 || Target.MType != 1 && Target.MType != 7Code:
Target.MType == 1Code:
Target.MType == 1 || Target.MType == 7Code:
Mob.MType == 1Code:
Mob.MType == 1||Mob.MType == 7Code:
MobTarget.MType == 1Code:
MobTarget.MType == 1 || MobTarget.MType == 7 |
Nice Release m8, can i add it to my [All-In-1] Thread?
|
Quote:
|
WOw Great Job Guys
|
OMFG IF THIS WORKS THEN I"M FUCKING HAPPY :D
|
Thanks
//edit lol got around 200 errors xD so i reversed everything... |
great :D
|
IT WORKS !!!
|
Quote:
|
Help
Im Getting alot of errors can u add me to msn and then we will talk from there email is [Only registered and activated users can see links. Click Here To Register...] and im useing ShadowCo source
|
1 Attachment(s)
i use the shadowco source and this are the errors i get, the other people who use shadowco prob get the same errors.
note: error 1, 2 and 3 are the same as 4 till 8. edit: fixed 9 XD. |
i think most of problems are here:
public static void SpawnAllMobs() and public static void NewRBGuard(short x, short y, short map, uint owner,short glvl) that must be under Mobs class like this: Code:
public class Mobs |
Muhahahaha Thx a lot
|
wow, nice release man, i got an warning here:
Code:
Target = Target;i remove this line. Code:
elseCode:
Assignment made to same variable; did you mean to assign something else? |
Quote:
i just forget to delete it i forget add some stufs with bluename and block you from attack your own guard so i added it to my post |
i jz need ur msn add me there [Only registered and activated users can see links. Click Here To Register...]
|
i get errors about things like MyMath not in current context "Other was not found in current context...
|
Hmm, can someone explain me this error?
[Only registered and activated users can see links. Click Here To Register...] can't find: if (PKMode == 0 || Mob.MType != 1) PKMode == 0 || Target.MType != 1 Target.MType == 1 Mob.MType == 1 |
Quote:
except that external db is just DataBase because shadowco doesnt have an external db. and every part that has the word void in it has it ._. |
Quote:
here: Code:
MyTimer.Start();it should look like that: Code:
MyTimer.Start(); |
Help
I have this done
Code:
public SingleMob(short x, short y, short map, uint maxhp, uint curhp, short minatk, short maxatk, uint uid, string name, int mech, short lvl, byte pos, byte Type, uint owner, bool Alive)Code:
owner2 = Other.Charowner(owner); |
1 Attachment(s)
Quote:
i always screw up with the { and }'s >_> that fixes all the void errors, now i got this: |
1 min
1 min i gotta restart computer
|
Quote:
|
can't find in character.cs:
if (PKMode == 0 || Mob.MType != 1) PKMode == 0 || Target.MType != 1 Target.MType == 1 Mob.MType == 1 |
Quote:
Code:
namespace COServer_Project |
ow nvm i had some "}" on the wrong places lol
but got it working now and it's cool ^^ |
wtf :D using this guide I made everything working in 3 min :D and you guys still get fucking errors ?
this guy made a great thing ! only problem that he missed some shit :P but he fixed it right away :D |
Quote:
|
Agreed :)
It wrecked my Brand New Spawn Command... :( But not i cant summon.... Lets try on UltimateCo Source now... |
Thats why i code the most in my server myself.
I can be sure that it works problem free :) |
Quote:
|
The only way keving made it problem-free, is by not adding it / leaving it blank. haha
|
Quote:
My server had RB guards working, haven't checked it in a while though(I'm letting Imitation code/run the server... Uh oh D:). Mine are not copied from here if you see them >_> They actually jump >_>(Thanks ntl3fty + Infamous). |
Quote:
anywayz gj (Y) |
Quote:
|
lotf didnt even have jump packet coded correctly,or i might be wrong
*edit: That was wierd,me and tao posted the EXACT same time :P |
ahk, well still easy enough =x
|
Quote:
|
Quote:
[Only registered and activated users can see links. Click Here To Register...] |
| All times are GMT +2. The time now is 19:52. |
Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.