盔甲限定
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
通常我是通过一些脚本来检查盔甲的ID,而且看起来这并不是非常困难。
当你检查物品ID的时候,TUS会给你带来一些麻烦。如果几个相同的东西而它们的ID却不同的话,TUS将把它们当作是相同的ID。
举例说一下皮颈:
IF =013ca
你在检查皮颈的物品ID时(事实上有四种不同样式的皮颈),TUS将认为这是 013ca——即使我们需要检查的是 013cc, 013d1 或者 013d3。即一个代码检查4种同类物品。而且很多盔甲都会象皮颈那样有好几个ID;即使你自己制作了17种皮颈,那也只需要检查最先的那个皮颈ID就可以了!
下一步我们可以在一行里检查多项物品。
比方说 013c5 到 013d3的所有皮甲,用下面这行可以全部包含:
IF (>013c4)&&(<013d4)
只有一个被遗漏掉,那就是 leather caps 不在这个序列中,不过你可以将它加到:
IF ((>013c4)&&(<013d4)) || ==01db9
即使有两种 leather caps, 第二种也会被归入第一个ID中去。
那么现在剩下的是如何限定职业的问题了……
Magic armor does NOT respond to a check of the mundane armor (i.e. Magic plate has to be checked seperately from regular plate).
The “fudging” that TUS does isn’t all roses either. I tried making magic leather armor, but any time I spawned a new armor vendor, the magic leather would be for sale on it. Problem is that UO doesn’t have a seperate catagory for magical leather so ALL leather is treated as saleable. Also, if you give away free leather to new characters, chances are they’ll get your magic leather instead. Bit of a pain, but the alternative is to have Menace disable the fudging and I think that would be a much BIGGER pain =)

留言
还没有留言,来坐个沙发吧。
留个言