Daimonin
Members login
Sign Up!      problems?
N F
* Daimonin Forum
Home Help Search Calendar

Welcome Guest, you have to register to post here.
Search

News

Stats
73707 Posts in 6687 Topics by 8103 Members
Latest Member: shambizzle
Daimonin Forum  |  Development  |  Arches  |  Topic: Help with Treasure Lists « previous next »
Pages: [1] Go Down Print
Topic: Help with Treasure Lists  (Read 625 times)
Torchwood
MapMaster
*
*
*


Karma: +34/-5
Posts: 946



View Profile
« on: August 31, 2007, 10:11:48 pm »

I'm working my way through designing a map ... its almost done, but I'm afraid I don't really get treasure lists.  I think I can work my way around standard treasure lists using the randomitems command and the list of existing TLs ... but if I wanted to include a rare special drop, I don't know how to do this.

Help?

Thanks,
Logged

longir
Administrator
*
*
*
*
*


Karma: +24/-4
Posts: 2966



View Profile
« Reply #1 on: September 01, 2007, 01:22:12 am »

use a rand_drop.  add rand_drop to mob's inventory, set the drop chance (1/  container is the chance in the text box, container 450 = 1/450 drop chance), add the special item to the inventory of the rand_drop.
Logged

DM
Dev Team Member
Site Admin

Mostly retired from playing
Torchwood
MapMaster
*
*
*


Karma: +34/-5
Posts: 946



View Profile
« Reply #2 on: September 01, 2007, 07:12:00 am »

Thanks Longir - that worked perfectly.

Another question on a similar subject ... on the main server, when ever I get a quest item (e.g. a cat's tail) I get a green text message the middle of the screen - but this doesn't happen on my mapmaker client here.  Is there some setting I'm supposed to use, or is this just something missing in my mapmaker client.

Also, can I make this happen for the special drop above (the help in the mapmaker suggests that if I make the special drop a quest or one-drop item then it will only ever drop once - which isn't really what I want to do ... compare to Lich's Belt (see here)?
Logged

smacky
Administrator
*
*
*
*
*


Karma: +114/-92
Posts: 5221



View Profile
« Reply #3 on: September 01, 2007, 11:47:24 am »

More likely something missing fom the mapmaker server.

Try
Code:
grep -r "NDI_VIM" server/src/*


You should get output similar to:
Code:
src/plugin_lua/daimonin_game.c:    {"COLOR_BLUE", NDI_BLUE}, {"COLOR_RED", NDI_RED}, {"COLOR_GREY", NDI_GREY},{"COLOR_GREEN", NDI_GREEN}, {"VIM_MSG", NDI_VIM},
src/include/newclient.h:#define NDI_VIM     0x08000 /* VIM-Message */
src/common/quest.c:                    new_draw_info(NDI_UNIQUE | NDI_NAVY | NDI_VIM, 0, target, auto_buf);
src/common/quest.c:                    new_draw_info_format(NDI_UNIQUE | NDI_NAVY | NDI_VIM, 0, target, "You found the quest item %s!", query_short_name(tmp, target));
src/common/quest.c:                    new_draw_info_format(NDI_UNIQUE | NDI_NAVY | NDI_VIM, 0, target, "You completed the quest '%s'!", query_short_name(quest, target));
src/common/quest.c:                    new_draw_info_format(NDI_NAVY | NDI_VIM, 0, pl, "Quest %s\n%s: %d/%d",
src/common/quest.c:                    new_draw_info_format(NDI_NAVY | NDI_VIM, 0, pl, "Quest %s\n%s: %d/%d",STRING_SAFE(tmp->name),

So as you can see from the quest.c stuff the server automatically sends this message to the client.

The other thing you can try is making your own VIM:
Code:
player:Write("Hello", game.VIM_MSG)

If you get a script error, your server has no VIM. If nothing happens or you just see a normal message, your client is out of date. If it works, at least your system is relatively up to date, but presumably for some reason your server has an old quest.c.
Logged

Pages: [1] Go Up Print 
Daimonin Forum  |  Development  |  Arches  |  Topic: Help with Treasure Lists « previous next »
Jump to:  

Page created in 0.084 seconds with 19 queries.
Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Copyright 2008 Daimonin MMORPG  •  Terms of Service  •  XHTML  •  Daimonin sourceforge open source project