(TEST) Item Distribution
Ok I made a quest where you hail an NPC and say yes if you like the newbie (test) items. Everything works fine just wondering if there is an easier way to distribut like
quest::summonitem("38105-38125"); Anyways, here is some code it works and the (TEST) items for class specific. Feel free to use and if you know an easier way let me know pls :) CLASS ITEM's Warrior 38000-38020 Monk 38021-38041 Rogue 38042-38062 Shadowknight 38063-38083 Paladin 38084-38104 Ranger 38105-38125 Beastlord 38129-38146 Bard 38147-38167 Cleric 38186-38188 Druid 38189-38209 Shaman 38210-38230 Wizard 38231-38251 Magician 38252-38272 Enchanter 38273-38293 Necromancer 38294-38314 Berserker 38315-38332 Code:
############# |
I have checked and as far as I can tell there is no support for summoning multiple items with a single quest::summonitem command. Although that would be a useful thing in certain cases.
|
I believe Perl supports iterating loops as follows, which would be cleaner.
Code:
if ($class eq 'Warrior') |
I believe there is a limit, would there be a way to spawn a bag full of items? Isn't that how it was done on the test server on live? Kind of like the clicky pet focus items servers have, where you summon a bag of stuff... I don't know how plausible this is, but if it could be done it would probably be the best way to go.
|
I thought this was a cool idea for gearing up bots, so here's my much simplified version as requested originally (fully tested on my own server). You do receive all 20 items on your cursor, but this works fine at least on 0.8.0+ and SoF client.
Code:
# Gear summoner for quick and easy bot equipping |
All times are GMT -4. The time now is 12:01 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.