RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Horde of Asses script issue.

Teagan

Sorceror
Yes, you read that right. I have taken this idea from Gargouille - his thieving ratmen horde. Mix it with an idea from Hammerhead, I decided to try a horde of thieves - from the homeland.
Horde of Asses, same principle as the HordeofRats and HordeofOrcs, but, the thieves are Bankers, Executives, and Congressmen. Set to loot only gold from people.
http://www.runuo.com/community/threads/runuo-2-0-these-ratmens-are-thieves.96008/
http://www.runuo.com/community/threads/a-truly-evil-monster-2-0-rc1.86723/

Problems are it's late for me, and I keep getting an error saying there is no definition for the namespace 'gold'.
If anyone can figure out what I did wrong, it would be much obliged. I am on Final Repack 2.0.
 

Attachments

  • HordeOfAsses.cs
    6.7 KB · Views: 3
  • HordeSystem.cs
    19.5 KB · Views: 2

Hammerhand

Knight
Instead of using
Code:
            Item loot = Loot.Gold();
            AddItem( loot);
Why not try
Code:
PackGold(Your amount);
or
Code:
PackGold(Your amount, Your amount);
the 2nd one should give a random amount between the 2 amounts.
Goes in the same place in the script. The gold is there in the mobs pack, waiting to be stolen if the player wants to try that.
 

Teagan

Sorceror
Hm. Will try to figure something out later today.

Code:
PackGold(Your amount);
Gives :
Errors:
+ Customs/HordeOfAsses.cs:
CS1026: Line 90: ) expected
CS1002: Line 90: ; expected
CS1525: Line 90: Invalid expression term ')'
CS1026: Line 158: ) expected
CS1002: Line 158: ; expected
CS1525: Line 158: Invalid expression term ')'
CS1026: Line 226: ) expected
CS1002: Line 226: ; expected
CS1525: Line 226: Invalid expression term ')'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
Code:
PackGold(Your amount, Your amount);
Gives :
Errors:
+ Customs/HordeOfAsses.cs:
CS1026: Line 90: ) expected
CS1002: Line 90: ; expected
CS1525: Line 90: Invalid expression term ','
CS1002: Line 90: ; expected
CS1002: Line 90: ; expected
CS1525: Line 90: Invalid expression term ')'
CS1026: Line 158: ) expected
CS1002: Line 158: ; expected
CS1525: Line 158: Invalid expression term ','
CS1002: Line 158: ; expected
CS1002: Line 158: ; expected
CS1525: Line 158: Invalid expression term ')'
CS1026: Line 226: ) expected
CS1002: Line 226: ; expected
CS1525: Line 226: Invalid expression term ','
CS1002: Line 226: ; expected
CS1002: Line 226: ; expected
CS1525: Line 226: Invalid expression term ')'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

ViWinfii

Sorceror
Are you using those functions correctly? It's supposed to go something like this:

Code:
this.PackGold(30, 100);
 

Teagan

Sorceror
Yep, I really was tired. lol

I got everything to work the way it should, having an xmlspawner toss up 3 hordeofasses at once can really screw with a character.
Thanks for the help.
I tried to edit the asses to say stuff like, 'MONEY MONEY MONEY!', and 'Your money will go to the trickle down theory, hahaha!'. Will try again later today.
 
Top