Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

Issue Confirmations

  • Yes (0)No (1)
Photo

Script Command : guildskill( <skill id>,<level> ) not working as intended.

Posted by Emistry on 29 April 2014 - 10:41 AM

Sample NPC Script :
prontera,155,181,5	script	Sample	757,{
for( .@i = GD_APPROVAL; .@i <= GD_DEVELOPMENT; .@i++ ){
	guildskill .@i,1;
}
dispbottom "Gained all Guild Skills";
end;
}

Problem :
The script work fine, the script command is actually work fine .... but the Guild wont gain the Guild Skill unless the Guild have remaining skill points.

https://github.com/H...ap/guild.c#1309
if( g->skill_point > 0 &&
it make the script command unable to up/add new guild skill because guild doesnt have extra skill point for it.


if based on Documention from https://github.com/H...ipt_command.txt

This command will bump up the specified guild skill by the specified
number of levels.


// This would give your character's guild one level of Approval
// (GD_APPROVAL ID 10000). Notice that if you try to add two levels of
// Approval, or add Approval when the guild already has it, it will only
// have one level of Approval afterwards.
guildskill 10000,1;

the script command should have success to up the guild skill level ....


I tried to fix by increasing the guild point by modify the script command a bit...too bad...failed..maybe this is not the solution...O__O
http://upaste.me/6de190

You might want to make a quest for getting a certain guild skill, make it
hard enough that all the guild needs to help or something. Doing this for
the Glory of the Guild skill, which allows your guild to use an emblem, is
a good idea for a fun quest. (Wasting a level point on that is really
annoying :D)

Maybe it is intended, and it is nothing else but documentation problem?

i think he refering wasting skill point on the Guild Glory Skill is annoying..and wasting point..

the script command should have give the Guild Skill without affecting the current guild skill points...

IF this script command is built to help users to consume their current guild point...then...this script command is totally USELESS..
why would i need a script command to help me update my guild's skill when i can just manually click on it ??

(The one who implemented it made to use guild SkillPoints by purpose as he mentioned it in last line of guildskill documentation, so I guess its not a bug)
But I agree too for not removing GuildSkillPoints, and also it is not used anywhere in the scripts existing till now..

Your diff failed because the skill_points are fetched from sql (int_guild.c#1622),
g = inter_guild_fromsql(guild_id);


It looks like as a documentation error rather than a bug, but I also agree with Emistry, a command that just uses skill points in this case would be pointless, unless the player isn't the guild master (gm), so I think that this script command should be updated to match the current documentation and I'll do so in a week unless someone posts here a good reason not to do so.
In a side note this command seems to be a way to mimic a command from the src, guild->skillup should only be used when there's skill points remaining as it's the same function that is used when a point is going to be spent, and it also seems that it's not possible to use *guildskillup on players that aren't gms.

pan 
changed severity to: 3 - Medium
changed status to: Fixed