prontera,146,155,3 script Martin#SBB 102,{ setarray .@item_ids, 501, 502, 503, 504, 505; setarray .@item_qty, 10, 21, 75, 83, 100; .@size_ids = getarraysize(.@item_ids); .@size_qty = getarraysize(.@item_qty); for (.@i = 0; .@i < .@size_ids; .@i++) if (countitem(.@item_ids[.@i]) < .@item_qty[.@i]) .@not_enought = 1; mes .@npc_name$ = "[Martin]"; if (.@size_ids != .@size_qty) { mes "Item list required isn't matched with amount list"; mes "tell game staff to fix it."; close; } if (!.@not_enought) { mes "Well you were fast!"; next; mes .@npc_name$; mes "Talk to Herman, he will tell you what you need to do."; SPECIALBLOODYBRANCH = 1; close; } mes callfunc("F_Hi")+" "+strcharinfo(0); .@stage = SPECIALBLOODYBRANCH; switch (.@stage) { case 0: break; default: mes (!rand(1) ? "What are you doing here?" : "Long time no see, How are you?"); close; } mes "Do you have some bussines with me?"; select("Regarding Special Bloody Branch"); clear; mes .@npc_name$; mes "I see.. you need to bring me some item for an exchange of information."; select("Tell me what item you want?"); clear; mes .@npc_name$; mes "Bring me item on the list bellow:"; for (.@i = 0; .@i < .@size_ids; .@i++) mes (.@i+1)+" - "+.@item_qty[.@i]+"x "+.@item_ids[.@i]; close; } morocc,78,185,5 script Herman#SBB 102,{ setarray .@item_ids, 501, 502, 503, 504, 505; setarray .@item_qty, 10, 21, 75, 83, 100; .@size_ids = getarraysize(.@item_ids); .@size_qty = getarraysize(.@item_qty); for (.@i = 0; .@i < .@size_ids; .@i++) if (countitem(.@item_ids[.@i]) < .@item_qty[.@i]) .@not_enought = 1; mes .@npc_name$ = "[Herman]"; if (.@size_ids != .@size_qty) { mes "Item list required isn't matched with amount list"; mes "tell game staff to fix it."; close; } if (!.@not_enought) { mes "Well you were fast!"; next; mes .@npc_name$; mes "Talk to Michele, he will tell you what you need to do next."; SPECIALBLOODYBRANCH = 2; close; } mes callfunc("F_Hi")+" "+strcharinfo(0); .@stage = SPECIALBLOODYBRANCH; switch (.@stage) { case 1: break; default: mes (!rand(1) ? "What are you doing here?" : "Long time no see, How are you?"); close; } mes "You have come here because Martin tell you to?"; select("About Special Bloody Branch"); clear; mes .@npc_name$; mes "I see.. you need to bring me some item for an exchange of information."; select("Tell me what item you want?"); clear; mes .@npc_name$; mes "Bring me item on the list bellow:"; for (.@i = 0; .@i < .@size_ids; .@i++) mes (.@i+1)+" - "+.@item_qty[.@i]+"x "+.@item_ids[.@i]; close; } aldebaran,161,46,3 script Michele#SBB 102,{ setarray .@item_ids, 501, 502, 503, 504, 505; setarray .@item_qty, 10, 21, 75, 83, 100; .@size_ids = getarraysize(.@item_ids); .@size_qty = getarraysize(.@item_qty); for (.@i = 0; .@i < .@size_ids; .@i++) if (countitem(.@item_ids[.@i]) < .@item_qty[.@i]) .@not_enought = 1; mes .@npc_name$ = "[Michele]"; if (.@size_ids != .@size_qty) { mes "Item list required isn't matched with amount list"; mes "tell game staff to fix it."; close; } if (!.@not_enought) { mes "Well you were fast!"; next; mes .@npc_name$; mes "Talk to Artezy, he will tell you what you need to do next."; SPECIALBLOODYBRANCH = 3; close; } mes callfunc("F_Hi")+" "+strcharinfo(0); .@stage = SPECIALBLOODYBRANCH; switch (.@stage) { case 2: break; default: mes (!rand(1) ? "What are you doing here?" : "Long time no see, How are you?"); close; } mes "You have come here because Herman tell you to?"; select("How to make Special Bloody Branch"); clear; mes .@npc_name$; mes "I will tell you, but you need to bring me some item for an exchange of information."; select("Tell me what item you want?"); clear; mes .@npc_name$; mes "Bring me item on the list bellow:"; for (.@i = 0; .@i < .@size_ids; .@i++) mes (.@i+1)+" - "+.@item_qty[.@i]+"x "+.@item_ids[.@i]; close; } alberta,60,173,3 script Artezy#SBB 102,{ setarray .@item_ids, 501, 502, 503, 504, 505; setarray .@item_qty, 10, 21, 75, 83, 100; .@size_ids = getarraysize(.@item_ids); .@size_qty = getarraysize(.@item_qty); for (.@i = 0; .@i < .@size_ids; .@i++) if (countitem(.@item_ids[.@i]) < .@item_qty[.@i]) .@not_enought = 1; mes .@npc_name$ = "[Artezy]"; if (.@size_ids != .@size_qty) { mes "Item list required isn't matched with amount list"; mes "tell game staff to fix it."; close; } if (!.@not_enought) { if (SPECIALBLOODYBRANCH == 4) { mes "Well you are here again"; next; select("Make Special Bloody Branch"); } else { mes "Well you were fast!"; next; mes .@npc_name$; mes "Talk to Artezy, he will tell you what you need to do next."; SPECIALBLOODYBRANCH = 4; } for (.@i = 0; .@i < .@size_ids; .@i++) delitem .@item_ids[.@i], .@item_qty[.@i]; getitem 30005 , 1; close;; } mes callfunc("F_Hi")+" "+strcharinfo(0); .@stage = SPECIALBLOODYBRANCH; switch (.@stage) { case 2: break; default: mes (!rand(1) ? "What are you doing here?" : "Long time no see, How are you?"); close; } mes "You have come here because Herman tell you to?"; select("How to make Special Bloody Branch"); clear; mes .@npc_name$; mes "I will tell you, but you need to bring me some item for an exchange of information."; select("Tell me what item you want?"); clear; mes .@npc_name$; mes "Bring me item on the list bellow:"; for (.@i = 0; .@i < .@size_ids; .@i++) mes (.@i+1)+" - "+.@item_qty[.@i]+"x "+.@item_ids[.@i]; close; }