im working on codeing reborn into it and it downgrades the items and all but when it gets to the skills it will not teach them could someone help me out and tell me where im going wrong
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Albetros.Game;
using Albetros.Game.Handlers;
using Albetros.Game.Objects;
namespace Albetros.Game.Handlers.Reborn
{
public class Reborn
{
public static void Rebirth(Player user)
{
Handler.LowerAllItems(user);
Handler.SetSkills(user);
user.RemoveItem(721259, 1);
user.AddSkill(4000, 0, 0);
user.Send(Packet.PlayerInfoPacket.Create(user));
}
}
}
and i changed it so there first Profession reads as Profession not Profession1
Side note... why hard code things like this? In my own version (thought it was included as part of the revision I uploaded) I handle it via a database system...
When server is loaded it pulls all the entries in the database to populate nested collections for easy access.
You simply do...
foreach(Skill _skill in RebornSkillsGained[user.Profession1][user.Profession2])
user.AddSkill(_skill);
foreach(Skill _skill in RebornSkillsLost[user.Profession1][user.Profession2])
user.RemoveSkill(_skill);
Same thing for 2nd reborn except that it's..
foreach(Skill _skill in SecondRebornSkillsGained[user.Profession1][user.Profession2][user.Profession3])
user.AddSkill(_skill);
foreach(Skill _skill in SecondRebornSkillsLost[user.Profession1][user.Profession2][user.Profession3])
user.RemoveSkill(_skill);
Makes it a lot easier to edit and sooo much more readable imo.
Note: In this example it would be collections consisting of...
Some albetros source's bug .. help me fixed? 03/08/2012 - CO2 Private Server - 5 Replies first:
when the player died , client's mouse is show the player still can attack。
Second:
when the player died , a monk use skill lock the ghost , but Client show he still can use the PathFinding
Third:
when the player use any skill .have some delay
Fourth:
some skill can't use...
Albetros Source Register successful but not in db 03/08/2012 - CO2 Private Server - 6 Replies When i register it says register seccessful but dont show in db? i trying App Server 2.6.0 Xampp 7.7.1 and Xampp 7.1.1 Any ideas
Need albetros source help ... Pro4ever[pls come here,thx] 02/17/2012 - CO2 Private Server - 1 Replies iwant make 100+ static AIPlayer in market map or another map from database characters table when the user no in the game...
it mean the AIPlayer didn't do anything -_-~
how can i do ...
i read your code ... like duelist ....
can you teach me how to code -_-!
pro4ever .. albetros source cheat??? 02/03/2012 - CO2 Private Server - 9 Replies why did the albetros source , some player can cheat,add much statpoint and cps .....i'm in trouble ,how can i do ,
in the server didn't saw any Exception..
but some player can make statpoint up to 10000+
and cps add 1,000,000,000 +
how can i prevent that cheat again
help me ....
albetros source question!!! 01/30/2012 - CO2 Private Server - 3 Replies ok ...
i only have one question ...
what is the IrcBot?
how can i use it fully ??