blob: fb1b282ecd8556322b913a3c7597523e5f02de67 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
// TMW2 scripts.
// Authors:
// Jesusalva
// TMW Org.
// Description:
// Core functions (it MUST be loaded first)
// Some setup is required
// Check if you have something to ask to Blue Sage staff
// BSQuestion( )
function script BSQuestion {
.@b1=getq(NivalisQuest_BlueSage);
.@b2=getq2(NivalisQuest_BlueSage);
.@b3=getq3(NivalisQuest_BlueSage);
.@rt=0;
// After you collected everyone's feedback, hide the option
if (is_between(3,8,.@b1)) {
if (.@b3 < BS_NPCALL)
.@rt=.@rt | BS_QHELPER;
}
if (.@b1 == 6) {
if (.@b2 < BS_NPCALL)
.@rt=.@rt | BS_QVISITOR;
}
return .@rt;
}
// Proccess the slime type and amount
// BSProccess( SlimeNestID )
function script BSProccess {
.@b1=getq(NivalisQuest_BlueSageSlimes);
.@b2=getq2(NivalisQuest_BlueSageSlimes);
.@b3=getq3(NivalisQuest_BlueSageSlimes);
// Quest state not assigned
if (!.@b1)
return;
// TODO
return;
}
020-7-1,0,0,0 script #BlueSageHUB NPC_HIDDEN,{
end;
OnCycle:
addtimer(1000, "#BlueSageHUB::OnCycle");
end;
}
|