30 lines
956 B
Plaintext
30 lines
956 B
Plaintext
|
#include "tr_items_inc"
|
||
|
#include "nw_i0_tool"
|
||
|
#include "craft_inc"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
int nSkillTest;
|
||
|
int nTailorSkillNumber;
|
||
|
object oPC = GetLastUsedBy();
|
||
|
|
||
|
//////////////////////////////////////////////////////////
|
||
|
if((HasItem(GetPCSpeaker(), "tr_silkthread"))){
|
||
|
DestroyObject(GetItemPossessedBy(GetPCSpeaker(), "tr_silkthread"));
|
||
|
nTailorSkillNumber = GetCampaignInt(GZ_AMON_CRAFT, "GZ_BD_TAILOR!", oPC);
|
||
|
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 3.0, 3.0));
|
||
|
|
||
|
if(nSkillTest = (nTailorSkillNumber+nRoll100) >= SILK_THREAD){
|
||
|
FloatingTextStringOnCreature("*You create a fine sheet of silk*", oPC);
|
||
|
CreateItemOnObject("tr_silkcloth", oPC);
|
||
|
|
||
|
}
|
||
|
else{
|
||
|
AmonCraftTailor(oPC, nTailorSkillNumber=nTailorSkillNumber+nRoll2);
|
||
|
}
|
||
|
}
|
||
|
else
|
||
|
FloatingTextStringOnCreature("*You do not have any silk thread*", oPC);
|
||
|
}
|
||
|
|