Beholder

Status
Not open for further replies.
Re: [Release] Beholder

I know how to code the Hex, but does it summon the Beholder as well or just activates the buffs for the beholder?
 
Re: [Release] Beholder

It has to have beholder summoned already, as a prerequisite, but beholder can still stay on if Hex runs out, but hex can't stay on if beholder runs out.
 
Re: [Release] Beholder

SkillsPacket::useSkill(player, blah blah blah, 0, (char) 0x10, 0, 0, 0, (char)0x80, 0, 0, vals, 1);



This is what slayah told me, but of course, I don't know what to do >_>.



my friend is a 'wipe xD.
 
Re: [Release] Beholder

I know how to code the Hex, but does it summon the Beholder as well or just activates the buffs for the beholder?
Think of Beholder like Crusader's Combo, and Hex and Healing like Coma and Panic.

Basically throw some if statements saying like "if player has Beholder skill active, effects of hex/heal will work"
 
Re: [Release] Beholder

ok so i got those codes:
PHP:
else if(strcmp(command, "type1") == 0){
			int skillid = strval(strtok_s(NULL, " ",&next_token));
			int packetid = 0;
			short level = player->skills->getSkillLevel(skillid);
			vector <int> vals;
			if(strlen(next_token) > 0)
			vals.push_back(Skills::skills[skillid][level].x);
            SkillsPacket::useSkill(player, Maps::info[player->getMap()].Players , skillid, Skills::skills[skillid][level].time*1000, (char)next_token, 0, 0, 0, 0, 0, 0, 0, vals, 1);
        }
        else if(strcmp(command, "type2") == 0){
			int skillid = strval(strtok_s(NULL, " ",&next_token));
			int packetid = 0;
			short level = player->skills->getSkillLevel(skillid);
			vector <int> vals;
			if(strlen(next_token) > 0)
			vals.push_back(Skills::skills[skillid][level].x);
            SkillsPacket::useSkill(player, Maps::info[player->getMap()].Players , skillid, Skills::skills[skillid][level].time*1000, 0, (char)next_token, 0, 0, 0, 0, 0, 0, vals, 1);
        }
        else if(strcmp(command, "type3") == 0){
			int skillid = strval(strtok_s(NULL, " ",&next_token));
			int packetid = 0;
			short level = player->skills->getSkillLevel(skillid);
			vector <int> vals;
			if(strlen(next_token) > 0)
			vals.push_back(Skills::skills[skillid][level].x);
            SkillsPacket::useSkill(player, Maps::info[player->getMap()].Players , skillid, Skills::skills[skillid][level].time*1000, 0, 0, (char)next_token, 0, 0, 0, 0, 0, vals, 1);
        }
        else if(strcmp(command, "type4") == 0){
			int skillid = strval(strtok_s(NULL, " ",&next_token));
			int packetid = 0;
			short level = player->skills->getSkillLevel(skillid);
			vector <int> vals;
			if(strlen(next_token) > 0)
			vals.push_back(Skills::skills[skillid][level].x);
            SkillsPacket::useSkill(player, Maps::info[player->getMap()].Players , skillid, Skills::skills[skillid][level].time*1000, 0, 0, 0, (char)next_token, 0, 0, 0, 0, vals, 1);
        }
        else if(strcmp(command, "type5") == 0){
			int skillid = strval(strtok_s(NULL, " ",&next_token));
			int packetid = 0;
			short level = player->skills->getSkillLevel(skillid);
			vector <int> vals;
			if(strlen(next_token) > 0)
			vals.push_back(Skills::skills[skillid][level].x);
            SkillsPacket::useSkill(player, Maps::info[player->getMap()].Players , skillid, Skills::skills[skillid][level].time*1000, 0, 0, 0, 0, (char)next_token, 0, 0, 0, vals, 1);
        }
        else if(strcmp(command, "type6") == 0){
			int skillid = strval(strtok_s(NULL, " ",&next_token));
			int packetid = 0;
			short level = player->skills->getSkillLevel(skillid);
			vector <int> vals;
			if(strlen(next_token) > 0)
			vals.push_back(Skills::skills[skillid][level].x);
            SkillsPacket::useSkill(player, Maps::info[player->getMap()].Players , skillid, Skills::skills[skillid][level].time*1000, 0, 0, 0, 0, 0, (char)next_token, 0, 0, vals, 1);
        }
        else if(strcmp(command, "type7") == 0){
			int skillid = strval(strtok_s(NULL, " ",&next_token));
			int packetid = 0;
			short level = player->skills->getSkillLevel(skillid);
			vector <int> vals;
			if(strlen(next_token) > 0)
			vals.push_back(Skills::skills[skillid][level].x);
            SkillsPacket::useSkill(player, Maps::info[player->getMap()].Players , skillid, Skills::skills[skillid][level].time*1000, 0, 0, 0, 0, 0, 0, (char)next_token, 0, vals, 1);
        }
        else if(strcmp(command, "type8") == 0){
			int skillid = strval(strtok_s(NULL, " ",&next_token));
			int packetid = 0;
			short level = player->skills->getSkillLevel(skillid);
			vector <int> vals;
			if(strlen(next_token) > 0)
			vals.push_back(Skills::skills[skillid][level].x);
            SkillsPacket::useSkill(player, Maps::info[player->getMap()].Players , skillid, Skills::skills[skillid][level].time*1000, 0, 0, 0, 0, 0, 0, 0, (char)next_token, vals, 1);
        }

but when im trying to make SP works
its crash with erro 38 ..
 
Re: [Release] Beholder

My commands below:
PHP:
		else if(strcmp(command, "type1") == 0){
			int skillid = atoi(strtok_s(NULL, " ",&next_token));
			int packet = atoi(strtok_s(NULL, " ",&next_token));
			int val = atoi(strtok_s(NULL, " ",&next_token));
			vector <int> vals;
			vals.push_back(val);
            SkillsPacket::useSkill(player, Maps::info[player->getMap()].Players , skillid, 1200*1000, packet, 0, 0, 0, 0, 0, 0, 0, vals, 1);
        }
        else if(strcmp(command, "type2") == 0){
			int skillid = atoi(strtok_s(NULL, " ",&next_token));
			int packet = atoi(strtok_s(NULL, " ",&next_token));
			int val = atoi(strtok_s(NULL, " ",&next_token));
			vector <int> vals;
			vals.push_back(val);
			SkillsPacket::useSkill(player, Maps::info[player->getMap()].Players , skillid, 120*1000, 0, packet, 0, 0, 0, 0, 0, 0, vals, 1);
        }
        else if(strcmp(command, "type3") == 0){
			int skillid = atoi(strtok_s(NULL, " ",&next_token));
			int packet = atoi(strtok_s(NULL, " ",&next_token));
			int val = atoi(strtok_s(NULL, " ",&next_token));
			vector <int> vals;
			vals.push_back(val);
            SkillsPacket::useSkill(player, Maps::info[player->getMap()].Players , skillid, 1200*1000, 0, 0, packet, 0, 0, 0, 0, 0, vals, 1);
        }
        else if(strcmp(command, "type4") == 0){
			int skillid = atoi(strtok_s(NULL, " ",&next_token));
			int packet = atoi(strtok_s(NULL, " ",&next_token));
			int val = atoi(strtok_s(NULL, " ",&next_token));
			vector <int> vals;
			vals.push_back(val);
            SkillsPacket::useSkill(player, Maps::info[player->getMap()].Players , skillid, 1200*1000, 0, 0, 0, packet, 0, 0, 0, 0, vals, 1);
        }
        else if(strcmp(command, "type5") == 0){
			int skillid = atoi(strtok_s(NULL, " ",&next_token));
			int packet = atoi(strtok_s(NULL, " ",&next_token));
			int val = atoi(strtok_s(NULL, " ",&next_token));
			vector <int> vals;
			vals.push_back(val);
            SkillsPacket::useSkill(player, Maps::info[player->getMap()].Players , skillid, 1200*1000, 0, 0, 0, 0, packet, 0, 0, 0, vals, 1);
        }
        else if(strcmp(command, "type6") == 0){
			int skillid = atoi(strtok_s(NULL, " ",&next_token));
			int packet = atoi(strtok_s(NULL, " ",&next_token));
			int val = atoi(strtok_s(NULL, " ",&next_token));
			vector <int> vals;
			vals.push_back(val);
            SkillsPacket::useSkill(player, Maps::info[player->getMap()].Players , skillid, 1200*1000, 0, 0, 0, 0, 0, packet, 0, 0, vals, 1);
        }
        else if(strcmp(command, "type7") == 0){
			int skillid = atoi(strtok_s(NULL, " ",&next_token));
			int packet = atoi(strtok_s(NULL, " ",&next_token));
			int val = atoi(strtok_s(NULL, " ",&next_token));
			vector <int> vals;
			vals.push_back(val);
            SkillsPacket::useSkill(player, Maps::info[player->getMap()].Players , skillid, 1200*1000, 0, 0, 0, 0, 0, 0, packet, 0, vals, 1);
        }
        else if(strcmp(command, "type8") == 0){
			int skillid = atoi(strtok_s(NULL, " ",&next_token));
			int packet = atoi(strtok_s(NULL, " ",&next_token));
			int val = atoi(strtok_s(NULL, " ",&next_token));
			vector <int> vals;
			vals.push_back(val);
            SkillsPacket::useSkill(player, Maps::info[player->getMap()].Players , skillid, 1200000, 0, 0, 0, 0, 0, 0, 0, packet, vals, 1);
        }

The syntax is: !type# <ID of the skill> <packet in decimal!convert from hex> <argument>

Have Fun!
 
Re: [Release] Beholder

Wow! can't believe I missed this! Thx!
Edit: No it's not! it needs to be type2, and it works like that...
And what is the vals for Beholder? How can I find that out? in most skills in obvious, but this not.
 
Re: [Release] Beholder

thing is...
i wanna know what wrong with my commend.. that its not givin me SP...

i think because i get only 1 val... maybe it need 2 :?
 
Status
Not open for further replies.
Back