Trying to add Guild Points | Clothcraft | Hauh_Colphioh.lua

Post Reply
lwrand
Posts: 3
Joined: Wed Aug 13, 2014 3:47 pm

Trying to add Guild Points | Clothcraft | Hauh_Colphioh.lua

Post by lwrand » Mon Aug 18, 2014 1:56 pm

Hi GreatOnes :),
I love this project and, together with some friends, I'm currently running a private server to revive the old awesome moments.
While crafting I saw that the "Guild Points" are not implemented at all, so I decided to do some tests on the remaining event Ids (Reference: https://wiki.dspt.info/index.php/Windur ... _Event_IDs). In order to do so, I added the following lua file:

scripts\zones\Windurst_Woods\npcs\Hauh_Colphioh.lua (Clothcraft NPC for guild points)

Code: Select all


require("scripts/globals/crafting");
require("scripts/zones/Windurst_Woods/TextIDs");

local SKILLID = 52; -- Clothcraft

function onTrigger(player,npc)
	
local guildMember = isGuildMember(player,3);
local SkillCap = getCraftSkillCap(player,8);
local SkillLevel = player:getSkillLevel(8);
	
printf("guildMember: %u",guildMember);
printf("SkillCap: %u",SkillCap);
printf("SkillLevel: %u",SkillLevel);
	
player:startEvent(0x0322,40,30);
	
end;
I tried with the decimal number 820 (0x0322), the parameters 40 (as skill cap) and 30 (as current cloth skill), but it doesn't work as the character is blocked/locked next to the NPC.
The only way to regain control of it is to press "ESC".
Now, since I see some servers with guild points (I haven't tried but it seems they work), can you give me some hints/advice on how I can properly simulate the process to get guild points ?
Any lua/cpp and/or example would be really nice :).

BTW: while trying I found that these decimal IDs are bound with Selele

Code: Select all

812 (cut, probably the first quest you get by him)
813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831 (Dialog)
Thanks.
/lwrand,

Post Reply