Full Version : bod time remaining
xmlspawner >>Scripting Support >>bod time remaining


<< Prev | Next >>

Greypurple- 02-16-2006
no i load it and target an object.here is the npc file
CODE

<?xml version="1.0" standalone="yes"?>
<XmlQuestNPC>
 <NPC>
   <Name>Bodcu</Name>
   <Running>True</Running>
   <ProximityRange>3</ProximityRange>
   <AllowGhost>False</AllowGhost>
   <SpeechPace>10</SpeechPace>
   <ResetTime>0.0833333333333333</ResetTime>
   <SpeechEntries>3</SpeechEntries>
 </NPC>
 <SpeechEntry>
   <EntryNumber>0</EntryNumber>
   <ID>0</ID>
   <Pause>1</Pause>
   <PrePause>-1</PrePause>
   <LockConversation>True</LockConversation>
   <AllowNPCTrigger>False</AllowNPCTrigger>
   <SpeechStyle>Regular</SpeechStyle>
   <SpeechHue>-1</SpeechHue>
 </SpeechEntry>
 <SpeechEntry>
   <EntryNumber>10</EntryNumber>
   <ID>10</ID>
   <Keywords>bodtime</Keywords>
   <Condition>GETONTRIGMOB,skills.tailoring.value&gt;20</Condition>
   <DependsOn>-1</DependsOn>
   <Pause>1</Pause>
   <PrePause>-1</PrePause>
   <LockConversation>True</LockConversation>
   <AllowNPCTrigger>False</AllowNPCTrigger>
   <SpeechStyle>Regular</SpeechStyle>
   <SpeechHue>-1</SpeechHue>
   <Gump>GUMP,Bir sonraki bod,0/{GETONTRIGMOB,NextTailorBulkOrder.hours} saat {GETONTRIGMOB,NextTailorBulkOrder.minutes} dakikaniz var</Gump>
 </SpeechEntry>
 <SpeechEntry>
   <EntryNumber>20</EntryNumber>
   <ID>20</ID>
   <Keywords>bodtime</Keywords>
   <Condition>GETONTRIGMOB,skills.tailoring.value&lt;20.1</Condition>
   <DependsOn>-1</DependsOn>
   <Pause>1</Pause>
   <PrePause>-1</PrePause>
   <LockConversation>True</LockConversation>
   <AllowNPCTrigger>False</AllowNPCTrigger>
   <SpeechStyle>Regular</SpeechStyle>
   <SpeechHue>-1</SpeechHue>
   <Gump>GUMP,Yetersiz Skill,0/Bod alabilmek icin yeterli skilliniz yok</Gump>
 </SpeechEntry>
</XmlQuestNPC>


ArteGordon- 02-16-2006
what object are you targeting?

Are you able to access the attachment afterward using the [xmledit command?

Greypurple- 02-16-2006
its a trash barrel.yes i can xmledit on it and see the entries.when i use staff cloack and make my level player i can see the gump when typing bodtime but its only once.than about 20 seconds later i can use the command and see it.but the players on my shard never see the gump.

ArteGordon- 02-16-2006
QUOTE (Greypurple @ Feb 16 2006, 08:31 AM)
this is not working always when i say when the gump appears but then i try about 50 times and its not appearing.and my players trying it and they dont got any gumps .i think this is not working clear..can i make a command script for this?

Just a note, but I notice that you changed the keyword to "bodtime", so that is what you need to say to activate the gump, not "when". You could allow both keywords to activate it by just specifying both as keywords separated by a comma, like

when,bodtime

Greypurple- 02-16-2006
i am saying bodtime and all the things that i tell you exists.

ArteGordon- 02-16-2006
QUOTE (Greypurple @ Feb 16 2006, 10:50 AM)
its a trash barrel.yes i can xmledit on it and see the entries.when i use staff cloack and make my level player i can see the gump when typing bodtime but its only once.than about 20 seconds later i can use the command and see it.but the players on my shard never see the gump.

If you become a player and say "bodtime" it brings up the gump, but if other players do the same thing they do not get a gump?

(edit)

I just tried what you posted and it worked fine for me. Also tried with other players and it was fine, so I'm not sure what is happening in your case.

You have it set up so that you have to wait at least 5 seconds between requests and they have to be within 3 tiles of the object.

Greypurple- 02-16-2006
yes they dont get the gump and i think there is a period time about saying this keywords.because when i say bodtime the gump appears but after the commands that i type its not showing.about a 20 seconds later i can see it again.

ArteGordon- 02-16-2006
just reduce the ResetTime if you dont want to wait as long between requests. You can make it zero if you want, for the minimum delay.

Greypurple- 02-16-2006
ok now it works.but i also want another one for blacksmith bods
here is the npcfile
CODE

<?xml version="1.0" standalone="yes"?>
<XmlQuestNPC>
 <NPC>
   <Name>Bodcu</Name>
   <Running>True</Running>
   <ProximityRange>5</ProximityRange>
   <AllowGhost>False</AllowGhost>
   <SpeechPace>10</SpeechPace>
   <ResetTime>0</ResetTime>
   <SpeechEntries>3</SpeechEntries>
 </NPC>
 <SpeechEntry>
   <EntryNumber>0</EntryNumber>
   <ID>0</ID>
   <Pause>1</Pause>
   <PrePause>-1</PrePause>
   <LockConversation>True</LockConversation>
   <AllowNPCTrigger>False</AllowNPCTrigger>
   <SpeechStyle>Regular</SpeechStyle>
   <SpeechHue>-1</SpeechHue>
 </SpeechEntry>
 <SpeechEntry>
   <EntryNumber>10</EntryNumber>
   <ID>10</ID>
   <Keywords>bodtime</Keywords>
   <Condition>GETONTRIGMOB,skills.blacksmithy.value&gt;20</Condition>
   <DependsOn>-1</DependsOn>
   <Pause>1</Pause>
   <PrePause>-1</PrePause>
   <LockConversation>True</LockConversation>
   <AllowNPCTrigger>False</AllowNPCTrigger>
   <SpeechStyle>Regular</SpeechStyle>
   <SpeechHue>-1</SpeechHue>
   <Gump>GUMP,Bir sonraki bod,0/{GETONTRIGMOB,NextSmithBulkOrder.hours} saat {GETONTRIGMOB,NextSmithBulkOrder.minutes} dakikaniz var</Gump>
 </SpeechEntry>
 <SpeechEntry>
   <EntryNumber>20</EntryNumber>
   <ID>20</ID>
   <Keywords>bodtime</Keywords>
   <Condition>GETONTRIGMOB,skills.blacksmithy.value&lt;20.1</Condition>
   <DependsOn>-1</DependsOn>
   <Pause>1</Pause>
   <PrePause>-1</PrePause>
   <LockConversation>True</LockConversation>
   <AllowNPCTrigger>False</AllowNPCTrigger>
   <SpeechStyle>Regular</SpeechStyle>
   <SpeechHue>-1</SpeechHue>
   <Gump>GUMP,Yetersiz Skill,0/Bod alabilmek icin yeterli skilliniz yok</Gump>
 </SpeechEntry>
</XmlQuestNPC>

but its not working.any thing wrong?

ArteGordon- 02-17-2006
I believe the correct skillname is Blacksmith, not Blacksmithy

QUOTE

<Condition>GETONTRIGMOB,skills.blacksmithy.value&gt;20</Condition>

Greypurple- 02-18-2006
I found a bug in this.If the players tailor skill or blacksmithy skill is 120.0 than they get not enough skill gump.

ArteGordon- 02-18-2006
double check your condition for that entry.

This is what it will look like in the .npc file

<Condition>GETONTRIGMOB,skills.blacksmith.value&lt;20.1</Condition>

and this is what it will look like in the [xmledit gump

GETONTRIGMOB,skills.blacksmith.value<20.1