SphereServer BugTracker - SphereServer
View Issue Details
0002314SphereServerscript packpublic22-04-14 03:1723-04-14 15:09
mpgram 
XuN 
normalminoralways
resolvedfixed 
VMware 4 Core, 8GB RAMWindows2008 64
16-06-2013, 0.56b Prerelease 
16-06-2013, 0.56b Prerelease 
Automated (specify build number)
None
None
0002314: New CanUse in scripts
The new "CanUse" in scripts only takes that last value passed to it.

Example: CanUse=can_u_human|can_u_elf|can_u_gargoyle
Only Gargoyle can use it.

CanUse=can_u_elf|can_u_gargoyle|can_u_human
Only Human can use it.

Build from 4/20/2014
No tags attached.
Issue History
22-04-14 03:17mpgramNew Issue
22-04-14 03:20mpgramNote Added: 0002071
22-04-14 09:37XuNNote Added: 0002072
22-04-14 16:32mpgramNote Added: 0002074
22-04-14 16:33mpgramNote Edited: 0002074bug_revision_view_page.php?bugnote_id=0002074#r614
22-04-14 17:25BenNote Added: 0002075
23-04-14 15:09XuNNote Added: 0002083
23-04-14 15:09XuNStatusnew => resolved
23-04-14 15:09XuNFixed in Version => 16-06-2013, 0.56b Prerelease
23-04-14 15:09XuNResolutionopen => fixed
23-04-14 15:09XuNAssigned To => XuN

Notes
(0002071)
mpgram   
22-04-14 03:20   
Sorry, I should have mentioned: This happens on any equip-able item.
(0002072)
XuN   
22-04-14 09:37   
It works fine for me:

[ITEMDEF 0283]
DEFNAME=i_gargish_stone_arms_female
..
canuse=can_u_gargoyle|can_u_female

Both .show serv.itemdef.i_gargish_stone_arms_female.canuse and .xshow canuse on the item retrieves 012
(0002074)
mpgram   
22-04-14 16:32   
(edited on: 22-04-14 16:33)
This appears to be race related, not race/sex related.
To make sure, I deleted all the scripts and the spheresvr.exe and downloaded fresh. The world file is blank and this was a new character.

------------------------------------
[ITEMDEF 0df0]
DEFNAME=i_staff_black
...
CanUse=can_u_human|can_u_elf

As a human character, when trying to equip I get the message, Only elves may use this.

.xshow canuse on the item shows: 0c

---------------------------------------------------
[ITEMDEF 0df0]
DEFNAME=i_staff_black
...
CanUse=can_u_elf

.xshow canuse on the item shows: 08

--------------------------------------------------
[ITEMDEF 0df0]
DEFNAME=i_staff_black
...
CanUse=can_u_human

.xshow canuse on the item shows: 04
Human can also equip with no issue.

(0002075)
Ben   
22-04-14 17:25   
ok the error here is with t_equipitem in sphere_item_typedef_equipitem.scp.
Someone will have a look at it soon.
(0002083)
XuN   
23-04-14 15:09   
Fixed CanUse in the script, you can download it tonight.