SphereServer BugTracker - SphereServer
View Issue Details
0002344SphereServerexecutable - genericpublic20-05-14 03:4827-05-14 14:43
Coruja 
XuN 
normalminorN/A
resolvedfixed 
 
 
Automated (specify build number)
None
None
0002344: Missing train tooltips on vendors
On OSI vendors can train skills using tooltips, but this feature is missing on sphere. Just add this internally on brain_vendor AI (it's not needed on others AI's) :P


[EVENTS e_npc_vendor]
ON=@ContextMenuRequest
FOR 0 57
 IF (<I.<LOCAL._FOR>>)
   LOCAL.Disabled=
   IF (<SRC.<LOCAL._FOR>> >= <SERV.NPCTrainMax>) || (<SRC.<LOCAL._FOR>> >= <eval (<I.<LOCAL._FOR>>*<SERV.NPCTrainPercent>)/100>)
    LOCAL.Disabled=1
   ENDIF
   SRC.AddContextEntry <eval 100+<LOCAL._FOR>>,<eval 3006000+<LOCAL._FOR>>,<LOCAL.Disabled>
 ENDIF
ENDFOR

ON=@ContextMenuSelect
IF (<ARGN> >= 100) && (<ARGN> <= 157)
 TRAIN <SERV.SKILL.<eval <ARGN>-100>.KEY>
ENDIF
No tags attached.
Issue History
20-05-14 03:48CorujaNew Issue
20-05-14 16:36XuNNote Added: 0002222
27-05-14 14:07XuNNote Added: 0002247
27-05-14 14:07XuNStatusnew => resolved
27-05-14 14:07XuNResolutionopen => fixed
27-05-14 14:07XuNAssigned To => XuN
27-05-14 14:43XuNNote Added: 0002249
27-05-14 14:43XuNStatusresolved => feedback
27-05-14 14:43XuNResolutionfixed => reopened
27-05-14 14:43XuNStatusfeedback => resolved
27-05-14 14:43XuNResolutionreopened => fixed

Notes
(0002222)
XuN   
20-05-14 16:36   
This can be added via scripts on one event, that would let people to easily disable it without 100000 ini's settings :)
(0002247)
XuN   
27-05-14 14:07   
Added these triggers to sphere_vendors.scp
(0002249)
XuN   
27-05-14 14:43   
nvm, it was already added working ...