celestian
December 15th, 2023, 04:09
When reviewing why this wouldn't work I found this in CoreRPG
<number_ps name="exp">
<anchored position="insidetopleft" offset="195,10" width="65" height="20" />
<stateframe>
<drophilight name="fieldfocusplus" />
</stateframe>
<script>
function onDrop(x, y, draginfo)
if draginfo.isType("number") and Session.IsHost then
PartyXPManager.awardXPtoPC(draginfo.getNumberData( ),window.link.getTargetDatabaseNode());
return true;
end
end
</script>
</number_ps>
It should be
PartyXPManager.awardXPtoPC(window.link.getTargetDa tabaseNode(),draginfo.getNumberData());
Note that the number is last now.
<number_ps name="exp">
<anchored position="insidetopleft" offset="195,10" width="65" height="20" />
<stateframe>
<drophilight name="fieldfocusplus" />
</stateframe>
<script>
function onDrop(x, y, draginfo)
if draginfo.isType("number") and Session.IsHost then
PartyXPManager.awardXPtoPC(draginfo.getNumberData( ),window.link.getTargetDatabaseNode());
return true;
end
end
</script>
</number_ps>
It should be
PartyXPManager.awardXPtoPC(window.link.getTargetDa tabaseNode(),draginfo.getNumberData());
Note that the number is last now.