Mirage Source http://web.miragesource.net/forums/ |
|
Respawn class ? http://web.miragesource.net/forums/viewtopic.php?f=201&t=3825 |
Page 1 of 1 |
Author: | El_Dindonnier [ Wed Jun 11, 2008 10:49 pm ] |
Post subject: | Respawn class ? |
How to change respawn for class ? (I have see 1 respawn for ALL Oo) I have see that : http://web.miragesource.com/old-tutorials/temporary_archive/Different%20Respawn%20For%20Classes.html But don't work. Can I help me please ? Thanks you in advance. |
Author: | shaded [ Wed Jun 11, 2008 11:28 pm ] |
Post subject: | Re: Respawn class ? |
Change the map number to the one you want....same with the x/y coords. The tutorial you linked shows exactly how to do it. Just don't leave 1 for all the maps. |
Author: | GIAKEN [ Wed Jun 11, 2008 11:30 pm ] |
Post subject: | Re: Respawn class ? |
El_Dindonnier wrote: How to change respawn for class ? (I have see 1 respawn for ALL Oo) I have see that : http://web.miragesource.com/old-tutorials/temporary_archive/Different%20Respawn%20For%20Classes.html But don't work. Can I help me please ? Thanks you in advance. Not a good tutorial as far as I can tell |
Author: | shaded [ Wed Jun 11, 2008 11:32 pm ] |
Post subject: | Re: Respawn class ? |
Yeah there are many ways you could do it. You could save it to the class file. You could have it in the code. You could let the player pick from a few different starting positions. Etc etc... |
Author: | El_Dindonnier [ Wed Jun 11, 2008 11:41 pm ] |
Post subject: | Re: Respawn class ? |
When i change that : Code: Public Const START_MAP = 1 Public Const START_X = MAX_MAPX / 2 Public Const START_Y = MAX_MAPY / 2 With : Code: public START_MAP as byte Public START_X as byte Public START_Y as byte select case getplayerclass(index) case 0 START_MAP = 1 '<----insert first class starting map here START_X = MAX_MAPX / 2 '<---Insert map x, or leave it as it is, if you leave it as it is it'll warp you to the middle of the map START_Y = MAX_MAPY / 2'<--- same here but with Y coords case 1 START_MAP = 1 START_X = MAX_MAPX / 2 START_Y = MAX_MAPY / 2 case 2 START_MAP = 1 START_X = MAX_MAPX / 2 START_Y = MAX_MAPY / 2 'repeat the above cases as many times as you have classes 'once you've done that, end the case select end select I have : select case GetPlayerClass(Index) Invalid outsite procedure This tutorial don't work |
Author: | shaded [ Wed Jun 11, 2008 11:54 pm ] |
Post subject: | Re: Respawn class ? |
Make a sub and when you load your classes or something call it. If you don't know how to do this, I'll write you something simple. |
Author: | El_Dindonnier [ Thu Jun 12, 2008 12:00 am ] |
Post subject: | Re: Respawn class ? |
shaded wrote: Make a sub and when you load your classes or something call it. If you don't know how to do this, I'll write you something simple. Sorry I don't understand. You can write the sub for me ? please ? Thanks you in advance. |
Author: | shaded [ Thu Jun 12, 2008 12:08 am ] |
Post subject: | Re: Respawn class ? |
I will in a bit, my friend stopped over. Going out for some beer. |
Author: | shaded [ Thu Jun 12, 2008 4:06 am ] |
Post subject: | Re: Respawn class ? |
Ok.,...I am hammmered! Sub ClassStartPosition(Byval ClassNum) Enter select case thing end sub Change start position consamts and turn them into pbuliv as tutorial says. Call classstartpostion(GetClassNumber) Call this in load classes with you intitialtize the clasees when server starts! Wow smahamered! pm me I will egt you something mor legible |
Author: | GIAKEN [ Thu Jun 12, 2008 4:22 am ] |
Post subject: | Re: Respawn class ? |
Well I just did something really easy... Code: Public Function START_MAP(ByVal Index As Long) As Long START_MAP = Class(Player(Index).Char(Player(Index).CharNum).Class).Map End Function Public Function START_X(ByVal Index As Long) As Long START_X = Class(Player(Index).Char(Player(Index).CharNum).Class).x End Function Public Function START_Y(ByVal Index As Long) As Long START_Y = Class(Player(Index).Char(Player(Index).CharNum).Class).y End Function Simply add this under Type ClassRec: Code: Map As Long x As Integer y As Integer And then you just need to go to where the classes are loaded and copy what everything else does and change it to Map and X and Y and so on...pretty simple. Also you need to change all START_MAP / X / Y's to have (index) after them. |
Author: | El_Dindonnier [ Thu Jun 12, 2008 2:58 pm ] |
Post subject: | Re: Respawn class ? |
It's work ! Thanks you shaded and GIAKEN for your help ! |
Author: | shaded [ Thu Jun 12, 2008 3:56 pm ] |
Post subject: | Re: Respawn class ? |
lol Sorry I wasn't more helpful. Last night it was suppose to be one of those "1 beer" moments at the bar..... |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |