blob: aaf344e7b1c8388438770733fe34143eb74b0aee (
plain) (
tree)
|
|
// TMW-2 Script
// Author: Jesusalva
// Desc: Grand Hunter Quest Utils
// MobID
function script GHQ_GetQuestIDByMonsterID {
switch (getarg(0)) {
case Maggot:
return 1;
break;
case Snake:
return 2;
break;
case Scorpion:
return 3;
break;
default:
debugmes "Invalid mob ID: " + getarg(0);
dispbottom l("ERROR, Please report: GHQ GQID: Invalid ID: @@", getarg(0));
return 0;
break;
}
}
// QuestID (basically reverses the previous code)
function script GHQ_GetMonsterIDByQuestID {
switch (getarg(0)) {
case 1:
return Maggot;
break;
case 2:
return Snake;
break;
case 3:
return Snake;
break;
default:
debugmes "Invalid quest ID: " + getarg(0);
dispbottom l("ERROR, Please report: GHQ GMID: Invalid ID: @@", getarg(0));
return 0;
break;
}
}
// MobID, Place, Prize
function script GHQ_Assign {
.@id=GHQ_GetQuestIDByMonsterID(getarg(0));
next;
//mesq l("Current Quest Progress: @@/10,000 kills", getq2(General_Hunter));
mesn;
mes l("I represent the @@ Hunters. We hunt @@.", getarg(1), getmonsterlink(getarg(0)));
mes l("The great prize is @@. It can be claimed with Aidan, on Tulimshar.", getarg(2));
if (getq(General_Hunter)) mes l("You are currently hunting @@/10000 @@. Do you want to switch?", getq2(General_Hunter), getmonsterlink(GHQ_GetQuestIDByMonsterID(getq(General_Hunter))));
select
l("I'm not interested."),
rif(GHMEMO[.@id] < 10000,l("I'll hunt them for you."));
switch (@menu) {
case 2:
GHMEMO[getq(General_Hunter)]=getq2(General_Hunter);
setq(General_Hunter, .@id, GHMEMO[.@id]);
mesn;
mesq l("Good luck! Don't come back until you reach 10000 kills!");
break;
}
}
|