| Anonymous | Login | Signup for a new account | 19-06-26 10:51 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |
| 0002162 | SphereServer | executable - generic | public | 16-05-13 22:04 | 02-08-13 22:12 | |
| Reporter | Stanic | |||||
| Assigned To | Ben | |||||
| Priority | normal | Severity | block | Reproducibility | always | |
| Status | closed | Resolution | no change required | |||
| Platform | OS | OS Version | ||||
| Product Version | ||||||
| Target Version | Fixed in Version | |||||
| Summary | 0002162: NPC ID's change when your BODY is changed | |||||
| Description | When you have a NPC and you change your body, the ID also change. | |||||
| Steps To Reproduce | 1) Add this NPC: [CHARDEF c_man_test] ID=c_man 2) Use the command '.xshow ID' and will return 'c_man_test' 3) Set the body to 'c_woman' 4) Again use the commando '.xshow ID' and now will return 'c_woman' | |||||
| Additional Information | This is a block in the Vendor System for example, that always you have to being checking his salary. I have to use a FORCHARS 9999 4 times (4 worlds) because if some player change the sex of his Vendor when used FORINSTANCES c_vendor_pessoal the Vendor don't be accused like a c_vendor_pessoal | |||||
| Tags | No tags attached. | |||||
| Nightly Version | Automated (specify build number) | |||||
| Experimental Flags | None | |||||
| Option Flags | None | |||||
| Internal Build Number | ||||||
| Attached Files | ||||||
Notes |
|
|
(0001558) xwerswoodx (reporter) 18-06-13 13:08 edited on: 18-06-13 13:08 |
BASEID/ID shows CHARDEF "c_man_test" DISPID shows CHARDEF whick is ID "c_man" When you change body, ID need to change. If you want to find original ID, you can use OBODY. OBODY gives you c_man_test. |
|
(0001609) Stanic (reporter) 01-08-13 02:21 |
But like i said, i can't use OBODY in FORINSTANCES =/ |
|
(0001610) xwerswoodx (reporter) 01-08-13 02:49 |
but you can use like; [Function forinstestman] forchars 6144 //All of the chars if <OBODY>==c_man_test // actions // like; LOCAL.TOTALTESTMAN +=1 endif endfor return <DLOCAL.TOTALTESTMAN> |
|
(0001611) Stanic (reporter) 01-08-13 03:05 |
Yes, but using FORINSTANCES the Sphere will be more efficient because he just will check the npcs with the body c_man_test while the FORCHARS will check all npcs of the shard =/ |
|
(0001612) xwerswoodx (reporter) 01-08-13 03:13 edited on: 01-08-13 03:14 |
OR you can create woman char [chardef c_woman_test] ID=c_woman and forinstances c_man_test ... ... endfor forinstances c_woman_test ... ... endfor |
|
(0001613) Stanic (reporter) 01-08-13 03:18 |
this is a good workaround, thanks! :DD |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 16-05-13 22:04 | Stanic | New Issue | |
| 18-06-13 13:03 | xwerswoodx | Note Added: 0001557 | |
| 18-06-13 13:03 | xwerswoodx | Note Deleted: 0001557 | |
| 18-06-13 13:08 | xwerswoodx | Note Added: 0001558 | |
| 18-06-13 13:08 | xwerswoodx | Note Edited: 0001558 | View Revisions |
| 01-08-13 02:21 | Stanic | Note Added: 0001609 | |
| 01-08-13 02:49 | xwerswoodx | Note Added: 0001610 | |
| 01-08-13 03:05 | Stanic | Note Added: 0001611 | |
| 01-08-13 03:13 | xwerswoodx | Note Added: 0001612 | |
| 01-08-13 03:14 | xwerswoodx | Note Edited: 0001612 | View Revisions |
| 01-08-13 03:18 | Stanic | Note Added: 0001613 | |
| 02-08-13 22:12 | Ben | Status | new => closed |
| 02-08-13 22:12 | Ben | Assigned To | => Ben |
| 02-08-13 22:12 | Ben | Resolution | open => no change required |
| Copyright © 2000 - 2010 MantisBT Group |