Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a Regent bag with value?
Author Message
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #1
a Regent bag with value?
Just that, a bag that have a value (like 2500) and have's in 100 reagent of every reg [normal regs]

I had create a template [with the regs in] and works... but try to add a value and doesn't works... Sad The vendor still sells the bag at the price of the real bag [like 21 gps]

haha ^_^

I want to add it in the sphere_template_vend
and create a new one for plate armors complete Shock
Thanks ! Smile

[Image: 2hy9q0y.png]
08-19-2012 08:17 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #2
RE: a Regent bag with value?
you can try two methods;

[itemdef i_bag_reg]
id=i_bag
value=2500

[template reg_bag_100]
container=i_bag_reg
item=i_reag_black_pearl,100

then in vendor template

sell=reg_bag_100

if not works

[itemdef i_bag_reg]
id=i_bag
value=2500

on=@create
serv.newitem i_reag_black_pearl
new.amount=100
new.cont=<uid>

then in vendor template
sell=i_bag_reg
08-21-2012 03:34 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #3
RE: a Regent bag with value?
(08-21-2012 03:34 PM)Shaklaban Wrote:  you can try two methods;

[itemdef i_bag_reg]
id=i_bag
value=2500

[template reg_bag_100]
container=i_bag_reg
item=i_reag_black_pearl,100

then in vendor template

sell=reg_bag_100

if not works

[itemdef i_bag_reg]
id=i_bag
value=2500

on=@create
serv.newitem i_reag_black_pearl
new.amount=100
new.cont=<uid>

then in vendor template
sell=i_bag_reg


I'll try it Smile
Thanks!

[Image: 2hy9q0y.png]
08-21-2012 03:55 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Rayvolution
Journeyman
*

Posts: 135
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 1

Aetharia

Post: #4
RE: a Regent bag with value?
If you allow the vendor to buy the bag back, they will offer quite a lot of money for it though.

..and alternatively, if you just remove it from the sell list (I'm sure that was your plan anyway) then your server might be litered with 2 types of bags, ones you can sell and ones you can't. That would make my OCD run wild knowing players are having to deal with "unsellable" and "sellable" bags and having no real way of telling them apart. Shock

Here's a script I wrote back in 55i for doing what you want, the only difference is it's not *actually* a container. Dclicking it will "unpack the bag", giving you a legitimate/real i_bag and the reagents. I also made a "60 each" version but I don't see a point in posting both Big Grin

Don't ask me why I used Base IDs instead of their DEFNAMEs, I wrote this like 5 years ago.

You could probably modify it to bounce the items back into a "real" bag container instead of dumping them in your pack, that might be cleaner. I'm not sure why I didn't do that when I wrote this, but as I said, 5 years ago. Big Grin

Code:
[ITEMDEF i_Bag_of_Reagents_30]
NAME=Bag of Reagents (30 of Each)
ID=i_BAG
TYPE=134
WEIGHT=15
VALUE=800

ON=@CREATE
COLOR=07b7

ON=@DCLICK
REMOVE
SRC.SOUND=0048
SRC.MESSAGE You remove the reagents from the bag.
SRC.NEWITEM=0f7a
SRC.ACT.AMOUNT=30
SRC.ACT.BOUNCE
SRC.NEWITEM=0f7b
SRC.ACT.AMOUNT=30
SRC.ACT.BOUNCE
SRC.NEWITEM=0f84
SRC.ACT.AMOUNT=30
SRC.ACT.BOUNCE
SRC.NEWITEM=0f85
SRC.ACT.AMOUNT=30
SRC.ACT.BOUNCE
SRC.NEWITEM=0f86
SRC.ACT.AMOUNT=30
SRC.ACT.BOUNCE
SRC.NEWITEM=0f88
SRC.ACT.AMOUNT=30
SRC.ACT.BOUNCE
SRC.NEWITEM=0f8c
SRC.ACT.AMOUNT=30
SRC.ACT.BOUNCE
SRC.NEWITEM=0f8d
SRC.ACT.AMOUNT=30
SRC.ACT.BOUNCE
SRC.NEWITEM=i_bag
SRC.ACT.COLOR=07b7
SRC.ACT.BOUNCE

CATEGORY=Abanellia Items
SUBSECTION=Misc
DESCRIPTION=Bag of Regs (30)

[Image: 4_Logo.png]
An MMORPG based on the Ultima Online engine.
Completely Custom Map, GUI, AI, Combat, Skills, Crafts, Art, Music and so much more.
http://aetharia.com - Home of Ambition!
(This post was last modified: 08-22-2012 12:42 PM by Rayvolution.)
08-22-2012 12:39 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)