| Anonymous | Login | Signup for a new account | 09-06-26 04:31 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 | |
| 0001702 | SphereServer | new feature request | public | 07-01-10 04:27 | 24-03-13 21:14 | |
| Reporter | xantier | |||||
| Assigned To | RanXerox | |||||
| Priority | normal | Severity | feature | Reproducibility | N/A | |
| Status | resolved | Resolution | fixed | |||
| Platform | OS | OS Version | ||||
| Product Version | 0.56c Nightly | |||||
| Target Version | Fixed in Version | |||||
| Summary | 0001702: Enterrange | |||||
| Description | I was looking at UoDemo's decompiled scripts (1998 OSI server codes&scripts). There is a function used for traps : CODE #on enterrange<0x02>(object target) { if(!hasObjVar(this, "disarmed")) { doLocAnimation(getLocation(this), 0x10FE, 0x02, 0x10, 0x00, 0x00); loseHP(target, dice(0x0A, 0x03)); } return(0x01); } Or Covetous Level 3 Speaking Statues : CODE #on enterrange<0x03>(object target) { string Q5ZM = "Beware Ye Who Enter These Halls!"; list Q56U = Q5ZM; if(!hasObjVar(this, "working")) { if(!hasObjVar(target, "CovetousListenToStatueSpeak")) { setObjVar(this, "working", 0x01); callback(this, 0x19, 0x24); bark(this, Q5ZM); messageToRange(getLocation(this), 0x05, "barknow", Q56U); setObjVar(target, "CovetousListenToStatueSpeak", 0x01); } } return(0x01); } Is it possible you to add a function or trigger like Enterrange that works when you enter x distance range of an item or npc? Same for leaverange.. | |||||
| Tags | No tags attached. | |||||
| Nightly Version | Not Available | |||||
| Experimental Flags | None | |||||
| Option Flags | None | |||||
| Internal Build Number | ||||||
| Attached Files | ||||||
Notes |
|
|
(0001526) RanXerox (developer) 24-03-13 21:14 |
You can create items of this sort in the sphere scripting language by making an object of type=t_multi... a multi object is its own region, and you can use the @Enter trigger to cause the statue to speak, or trap to trigger, when the character gets close to it. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 07-01-10 04:27 | xantier | New Issue | |
| 07-01-10 04:27 | xantier | Nightly Version | => Not Available |
| 07-01-10 04:27 | xantier | Experimental Flags | => None |
| 07-01-10 04:27 | xantier | Option Flags | => None |
| 24-03-13 21:14 | RanXerox | Note Added: 0001526 | |
| 24-03-13 21:14 | RanXerox | Status | new => resolved |
| 24-03-13 21:14 | RanXerox | Resolution | open => fixed |
| 24-03-13 21:14 | RanXerox | Assigned To | => RanXerox |
| Copyright © 2000 - 2010 MantisBT Group |