| Mirage Source http://web.miragesource.net/forums/ |
|
| Spell level req fix http://web.miragesource.net/forums/viewtopic.php?f=210&t=404 |
Page 1 of 1 |
| Author: | Coke [ Sun Aug 20, 2006 12:36 pm ] |
| Post subject: | Spell level req fix |
Alright, so i was fiddling around with the basics and i noticed that the spell level requirement was not set by the 'level' req in the spell editor at all, it was infact taking the requirement from the vital mod (or appearing to do so anyhow)! Pfft! Little bit of searching and it was an easy fix indeed. Server side: Find: Code: Function GetSpellReqLevel(ByVal Index As Long, ByVal SpellNum As Long) GetSpellReqLevel = Spell(SpellNum).Data - Int(GetClassMAGI(GetPlayerClass(Index)) / 4) End Function and replace it with: Code: Function GetSpellReqLevel(ByVal Index As Long, ByVal SpellNum As Long)
GetSpellReqLevel = Spell(SpellNum).LevelReq End Function Thats it fixed. Easy peasy It shouldnt have any side effects at all, but please feel free to point out anything wrong with doing this. Seems to work perfectly to me but you never know! Toodles~ Edit: Slightly optimized, hrhr |
|
| Author: | Coke [ Sun Mar 09, 2008 2:58 pm ] |
| Post subject: | Re: Spell level req fix |
Actually, this doesn't work. There is a bit more too it than this, You have to go and mess around with packets and things.. I'll update this when I get a minute. |
|
| Author: | James [ Mon Mar 10, 2008 3:53 am ] |
| Post subject: | Re: Spell level req fix |
viewtopic.php?f=71&t=1712 |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|