'armour shop':
Type: Interact
Requirements:
Mode: None
LIST:
Steps:
1:
Proximity Trigger:
Script:
- CHAT 'Hello friend, check the prices on the signs, and r-click to start a purchase.'
Click Trigger:
Script:
- CHAT 'What type of armout would you like?'
- HINT short
Chat Trigger:
1:
Trigger: I want /leather/ armour.
Script:
- CHAT 'Would you like a suit or a single piece?'
- CHAT 'If single piece which one?'
- ^FLAG 'item1:298' 'DURATION:30'
- ^FLAG 'item2:299' 'DURATION:30'
- ^FLAG 'item3:300' 'DURATION:30'
- ^FLAG 'item4:301' 'DURATION:30'
- ^FLAG 'price:5' 'DURATION:30'
- ^FLAG 'sprice:18' 'DURATION:30'
- ^ZAP 2 'DURATION:30'
2:
Trigger: I want /gold/ armour.
Script:
- CHAT 'Would you like a suit or a single piece?'
- CHAT 'If single piece which one?'
- ^FLAG 'item1:314' 'DURATION:30'
- ^FLAG 'item2:315' 'DURATION:30'
- ^FLAG 'item3:316' 'DURATION:30'
- ^FLAG 'item4:317' 'DURATION:30'
- ^FLAG 'price:20' 'DURATION:30'
- ^FLAG 'sprice:75' 'DURATION:30'
- ^ZAP 2 'DURATION:30'
3:
Trigger: I want /iron/ armour.
Script:
- CHAT 'Would you like a suit or a single piece?'
- CHAT 'If single piece which one?'
- ^FLAG 'item1:306' 'DURATION:30'
- ^FLAG 'item2:307' 'DURATION:30'
- ^FLAG 'item3:308' 'DURATION:30'
- ^FLAG 'item4:309' 'DURATION:30'
- ^FLAG 'price:30' 'DURATION:30'
- ^FLAG 'sprice:100' 'DURATION:30'
- ^ZAP 2 'DURATION:30'
4:
Trigger: I want /*/.
Script:
- CHAT "Umm thats not on the list."
2:
Chat Trigger:
1:
Trigger: I want a /suit/ of armour.
Script:
- CHAT 'Ok my friend that will be <FLAG.P:sprice> gold.'
- FLAG 'cash:<PLAYER.MONEY>' 'DURATION:30'
- IF FLAG:cash:<FLAG.P:sprice> SCRIPT:givemesuit
- ZAP 1
2:
Trigger: I want a /boots/.
Script:
- CHAT 'Ok my friend that will be <FLAG.P:price> gold.'
- FLAG 'cash:<PLAYER.MONEY>' 'DURATION:30'
- FLAG 'item:<FLAG.P:item4>' 'DURATION:30'
- IF FLAG:cash:<FLAG.P:price> SCRIPT:giveme
- ZAP 1
3:
Trigger: I want a /pants/.
Script:
- CHAT 'Ok my friend that will be <FLAG.P:price> gold.'
- FLAG 'cash:<PLAYER.MONEY>' 'DURATION:30'
- FLAG 'item:<FLAG.P:item3>' 'DURATION:30'
- IF FLAG:cash:<FLAG.P:price> SCRIPT:giveme
- ZAP 1
4:
Trigger: I want a /chestplate/.
Script:
- CHAT 'Ok my friend that will be <FLAG.P:price> gold.'
- FLAG 'cash:<PLAYER.MONEY>' 'DURATION:30'
- FLAG 'item:<FLAG.P:item2>' 'DURATION:30'
- IF FLAG:cash:<FLAG.P:price> SCRIPT:giveme
- ZAP 1
5:
Trigger: I want a /helm/.
Script:
- CHAT 'Ok my friend that will be <FLAG.P:price> gold.'
- FLAG 'cash:<PLAYER.MONEY>' 'DURATION:30'
- FLAG 'item:<FLAG.P:item1>' 'DURATION:30'
- IF FLAG:cash:<FLAG.P:price> SCRIPT:giveme
- ZAP 1
'giveme':
Type: Task
Script:
- GIVE <FLAG.P:item:0>
- TAKE MONEY QTY:<FLAG.P:price:0>
- CHAT "Here you go my friend"
- NARRATE "You hand the shopkeeper <FLAG.P:price:0> gold."
'givemesuit':
Type: Task
Script:
- GIVE <FLAG.P:item1:0>
- GIVE <FLAG.P:item2:0>
- GIVE <FLAG.P:item3:0>
- GIVE <FLAG.P:item4:0>
- TAKE MONEY QTY:<FLAG.P:sprice:0>
- CHAT "Here you go my friend"
- NARRATE "You hand the shopkeeper <FLAG.P:price:0> gold."