[Help] guards on my p-server aren't working

09/14/2008 10:50 baubau123#1
ok, ive got a little problem... guards on my p-server,do spawn, but they aren't
working.so if anyone could help me with that. it would be great. :)

also, don't flame me plz xD im still learning stuff...
09/14/2008 14:30 tao4229#2
Do you mean reborn guards? They aren't coded, you'll have to code them yourself.

If you mean the guards that attack blue names, they work, if you're flashing they hit you, if you're NOT A GM.
09/14/2008 14:56 Lord Karil#3
There is a Thread about this

[Only registered and activated users can see links. Click Here To Register...]

give thanks to eragal_30

has coding for guards and sending people to jail
09/14/2008 18:00 glupkotrup#4
Quote:
Originally Posted by Lord Karil View Post
There is a Thread about this

[Only registered and activated users can see links. Click Here To Register...]

give thanks to eragal_30

has coding for guards and sending people to jail
Maybe that won't help him... So why should he give him a thanks lol? :rolleyes:
09/14/2008 19:43 baubau123#5
k thnx, yea guards work fine. but i have an command that spawns guards.
although how to delete the guard once spawned rofl.....

small edit : blackco got a register page now... with tribal lettering flame... etc.. and again thanks to karil this was possible hes the best teacher ever. design made by me and put together by karil. ofcourse ^.^
09/14/2008 19:50 glupkotrup#6
Aahh... Link to the test website or official website?
09/15/2008 08:52 Rechocto#7
If you want guards to attack Mobs that get near you'll have to code that yourself (I did this yesterday).. it's rather easy, just add to the Move() function if(Target == null && MType == 1) { Tgt = Other.MobNearest((uint)PosX, (uint)PosY, (uint)Map); }

then copy the CharNearest function, paste and rename it MobNearest, and edit it to use Mobs.Allmobs instead of World.Allchars, SingleMob instead of Character, and then back in Move() where you have MobUseSkill() copy that line and near the end add (If (Target == null && Tgt != null && Other.PointDistance(PosX, PosY, Tgt.PosX, Tgt.PosY) < 20) {


and throw in your MobUseSkill2(), now copy MobUseSkill function, paste, change name to MobUseSkill2(), and change "Character Attacked" to "SingleMob Attacked" and make the necessary adjustments (change LocX to PosX, LocY to PosY and LocMap to map) and you should be good to go! tell me if you cannot get it working, and Then I will slap you like your mother should have when you were little, but then I'll help you out.
09/15/2008 20:03 baubau123#8
@glupkotrup [Only registered and activated users can see links. Click Here To Register...] click this link itl work

all the way down the page theres a link called click me .. if u click that ull get on my register page... maybe u can tell me if it looks okay.. or ur opinion...
09/15/2008 20:10 glupkotrup#9
Too simple for the site, add bg image and work with MySql!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!! (you get the point)
09/15/2008 22:16 baubau123#10
using appserver......has mysql....... im working on a new site btw... with my own html coding.... gunna be a [Only registered and activated users can see links. Click Here To Register...] site soon...
09/15/2008 22:22 taguro#11
Quote:
Originally Posted by glupkotrup View Post
Too simple for the site, add bg image and work with MySql!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!! (you get the point)

@glupkotrup
I agree

@Poster I think glup meant using MySQL to display Top Players, Top Devils, register pages etc etc. There are a ton of releases and guides on the server webpage, you should check them out.
09/16/2008 15:31 glupkotrup#12
HTML 4 Life!!!! (Even tho php is better :p)
09/16/2008 20:35 Rechocto#13
Baubau123 - /guard adds a spawn to mobspawns in your database, just delete it and restart your server to get rid of the guard... as for gettign your guards to work, my release of guards attacking Mobs is in the Guides & Templates forum
09/16/2008 21:11 Lord Karil#14
Quote:
Originally Posted by Rechocto View Post
Baubau123 - /guard adds a spawn to mobspawns in your database, just delete it and restart your server to get rid of the guard... as for gettign your guards to work, my release of guards attacking Mobs is in the Guides & Templates forum
could u post the url please? :)
09/16/2008 21:21 Rechocto#15
lazy lazy lazy.... i better get thanks for this one XD

[Only registered and activated users can see links. Click Here To Register...]