unnown Posted April 24, 2009 Author Share Posted April 24, 2009 how to make the spells working,even with spell animations on death> If GetPlayerHP(n) > 0 And GetPlayerMap(Index) = GetPlayerMap(n) And GetPlayerLevel(Index) >= 10 And GetPlayerLevel(n) >= 10 And (Map(GetPlayerMap(Index)).Moral = MAP_MORAL_NONE Or Map(GetPlayerMap(Index)).Moral = MAP_MORAL_NO_PENALTY) And GetPlayerAccess(Index) <= 0 And GetPlayerAccess(n) <= 0 Thenthis is why it didn't work on other players (sometimes)this line (server side) has a few weird things,both players need to be above level 10,both players can't be admins,and the map moral needs to be no penalty or no moral at all,and to get npc's to work change> If CInt(Sqr((GetPlayerX(Index) - MapNPC(GetPlayerMap(Index), n).x) ^ 2 + ((GetPlayerY(Index) - MapNPC(GetPlayerMap(Index), n).Y) ^ 2))) > Spell(SpellNum).Range Then> Call BattleMsg(Index, "You are too far away to hit the target.", BRIGHTRED, 0)> Exit Sub> End Ifto> n = Player(Index).TargetNPC> If CInt(Sqr((GetPlayerX(Index) - MapNPC(GetPlayerMap(Index), n).x) ^ 2 + ((GetPlayerY(Index) - MapNPC(GetPlayerMap(Index), n).Y) ^ 2))) > Spell(SpellNum).Range Then> Call BattleMsg(Index, "You are too far away to hit the target.", BRIGHTRED, 0)> Exit Sub> End Ifthen to get the animations to work do this(it send the player's target instead of the npc num or player num> If Casted = True Then> Player(Index).AttackTimer = GetTickCount> Player(Index).CastedSpell = YES> Call SendDataToMap(GetPlayerMap(Index), "spellanim" & SEP_CHAR & SpellNum & SEP_CHAR & Spell(SpellNum).SpellAnim & SEP_CHAR & Spell(SpellNum).SpellTime & SEP_CHAR & Spell(SpellNum).SpellDone & SEP_CHAR & Index & SEP_CHAR & Player(Index).TargetType & SEP_CHAR & n & SEP_CHAR & Player(Index).CastedSpell & SEP_CHAR & Spell(SpellNum).Big & END_CHAR)> Call SendDataToMap(GetPlayerMap(Index), "sound" & SEP_CHAR & "magic" & SEP_CHAR & Spell(SpellNum).Sound & END_CHAR)> End If Link to comment Share on other sites More sharing options...
ddunit Posted April 24, 2009 Share Posted April 24, 2009 For noobs that probably won't be able to add it, why not upload a main.txt with it installed? Link to comment Share on other sites More sharing options...
Admiral Refuge Posted April 25, 2009 Share Posted April 25, 2009 @[ILLI:> BlahBlah[DDunit] link=topic=43236.msg434357#msg434357 date=1240617401]> For noobs that probably won't be able to add it, why not upload a main.txt with it installed?Because this isn't sadscript, it's vb6 Link to comment Share on other sites More sharing options...
yorty Posted April 25, 2009 Share Posted April 25, 2009 Yes! Thanks unnown. Link to comment Share on other sites More sharing options...
unnown Posted April 25, 2009 Author Share Posted April 25, 2009 @Ã…ÃÂüiÑÂôζ:> Because this isn't sadscript, it's vb6that one made my day :P Link to comment Share on other sites More sharing options...
Agoraphobic Posted April 25, 2009 Share Posted April 25, 2009 Very nice work. Link to comment Share on other sites More sharing options...
Alpha Posted April 25, 2009 Share Posted April 25, 2009 Thank you Unnown! Tons of people have been looking for this, thanks a lot.-Alpha Link to comment Share on other sites More sharing options...
the_best_flash Posted April 25, 2009 Share Posted April 25, 2009 Very nice. Thanks. Link to comment Share on other sites More sharing options...
unnown Posted April 25, 2009 Author Share Posted April 25, 2009 TY ALL :D Link to comment Share on other sites More sharing options...
Skillzalot Posted April 25, 2009 Share Posted April 25, 2009 Go unnown teach the source a lesson Link to comment Share on other sites More sharing options...
unnown Posted April 25, 2009 Author Share Posted April 25, 2009 you have no idea :P Link to comment Share on other sites More sharing options...
Skillzalot Posted April 25, 2009 Share Posted April 25, 2009 I might not but nice catch. This will help everybody out providing they have vb6 Link to comment Share on other sites More sharing options...
yorty Posted April 25, 2009 Share Posted April 25, 2009 Well, this is nice and all but EE 3.0 will (prob) make all of this unnecessary. Link to comment Share on other sites More sharing options...
Marsh Posted April 25, 2009 Share Posted April 25, 2009 Very nice unnown thank you. If someone could upload a client with only this changed i will make it the default download. Link to comment Share on other sites More sharing options...
Tyr Posted April 25, 2009 Share Posted April 25, 2009 blah unnown, i fixed this like 3 weeks ago and i can assure you it took me some time!very nice :) Link to comment Share on other sites More sharing options...
unnown Posted April 25, 2009 Author Share Posted April 25, 2009 @[BS:> Elephant God Yorty link=topic=43236.msg434514#msg434514 date=1240633214]> Well, this is nice and all but EE 3.0 will (prob) make all of this unnecessary.if you know java, then yeah, if not this is the next best thing,and tyr why didn't you post the fix then? Link to comment Share on other sites More sharing options...
Drummerpete Posted April 25, 2009 Share Posted April 25, 2009 I would muchly appreciate if someone would compile this as well.Plus marsh said to. :p Link to comment Share on other sites More sharing options...
unnown Posted April 25, 2009 Author Share Posted April 25, 2009 hmm it will all be in the mod im making (with working pets) Link to comment Share on other sites More sharing options...
Fbu Posted April 25, 2009 Share Posted April 25, 2009 Siiiick, thanks Link to comment Share on other sites More sharing options...
Sr_Sirius Posted April 25, 2009 Share Posted April 25, 2009 Very thanks man n1. Link to comment Share on other sites More sharing options...
Xavi Posted April 26, 2009 Share Posted April 26, 2009 Why make a source edit on 2.7 instead of on 3.0? Your edit will become obsolete upon it's release. Or was 3.0, *gasps*, CANCELED??!!??!! Link to comment Share on other sites More sharing options...
Admiral Refuge Posted April 26, 2009 Share Posted April 26, 2009 @Xavi:> Why make a source edit on 2.7 instead of on 3.0? Your edit will become obsolete upon it's release. Or was 3.0, *gasps*, CANCELED??!!??!!idk… His source edit may compete with 3.0 Link to comment Share on other sites More sharing options...
unnown Posted April 26, 2009 Author Share Posted April 26, 2009 because eclipse 3.0 is java based? this will be the last vb6 version :) Link to comment Share on other sites More sharing options...
Drummerpete Posted April 26, 2009 Share Posted April 26, 2009 @unnown:> because eclipse 3.0 is java based? this will be the last **_Official_** vb6 version :) Link to comment Share on other sites More sharing options...
unnown Posted April 26, 2009 Author Share Posted April 26, 2009 jup jup :) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now