View previous topic :: View next topic |
Author |
Message |
xardex
Joined: 02 Mar 2010 Posts: 40
|
Posted: Sun Mar 07, 2010 0:11 Post subject: |
|
|
It works now!
Thanks alot for your help MaxRock, Terra, Shado0ow... and everyone else whose name I dont remember right now!
Btw, I figured out how to remove all feats and modify HP. (!) |
|
Back to top |
|
|
Tenshar
Joined: 18 Apr 2010 Posts: 13
|
Posted: Sun Apr 18, 2010 20:52 Post subject: |
|
|
Terra_777 wrote: | Oh, yeah.
Code: | AssignCommand( GetModule(), Leto_ExecuteFileWritingOperation( ... ) ); |
If it runs on the PC it won't work since the PC is booted. |
I'm having a very similar problem, I've done everything specified in the topic so far, but where do I put:
Code: |
AssignCommand( GetModule(), Leto_ExecuteFileWritingOperation(oPC, sScript) );
|
?
So far, my script looks like this:
Code: |
#include "inc_letowrapperj"
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "godlypresence")!= OBJECT_INVALID)
{
FloatingTextStringOnCreature("You can't worship two gods!", oPC);
return;
}
else
{
CreateItemOnObject("godlypresence", oPC);
string sScript = Leto_GenerateLetoScriptModifyAbility(ABILITY_DEXTERITY, 2);
sScript += Leto_GenerateLetoScriptModifyAbility(ABILITY_CHARISMA, 2);
FloatingTextStringOnCreature("Applying ability bonuses.", oPC);
AssignCommand( GetModule(), Leto_ExecuteFileWritingOperation(oPC, sScript) );
}
}
|
I'm trying to make it so that this gives u 2 dex and 2 cha and then it creates an item with the resref: godlypresence, then it boots u, and if u have the item godlypresence already, then it says "You can't worship two gods!"
the problem is, it wont give me my ability bonuses, the rest works though.
thx in advance,
Tenshar |
|
Back to top |
|
|
Tenshar
Joined: 18 Apr 2010 Posts: 13
|
Posted: Mon Apr 19, 2010 18:53 Post subject: |
|
|
bump? |
|
Back to top |
|
|
Terra_777
Joined: 27 Jun 2008 Posts: 216 Location: Sweden
|
Posted: Tue Apr 20, 2010 0:47 Post subject: |
|
|
plugin: http://www.nwnx.org/phpBB2/viewtopic.php?t=1535
Code: | #include "nwnx_funcs"
void main( ){
object oPC = GetLastUsedBy( );
if( !GetIsPC( oPC ) ){
return;
}
else if( GetItemPossessedBy( oPC, "godlypresence" ) != OBJECT_INVALID ){
FloatingTextStringOnCreature( "You can't worship two gods!", oPC );
}
else{
CreateItemOnObject( "godlypresence", oPC );
FloatingTextStringOnCreature( "Applying ability bonuses.", oPC );
NWNXFuncs_ModAbilityScore( oPC, ABILITY_CHARISMA, 2 );
NWNXFuncs_ModAbilityScore( oPC, ABILITY_DEXTERITY, 2 );
}
} |
_________________ I dun have any signature, I'm happy anyway. |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Tue Apr 20, 2010 0:54 Post subject: |
|
|
Yeah, screw letoscript . _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
Tenshar
Joined: 18 Apr 2010 Posts: 13
|
Posted: Tue Apr 20, 2010 9:32 Post subject: |
|
|
Hm, didn't work, I used nwnx to test it, it booted me when I used the item, I logged back on and no changes made
any ideas?
- Tenshar |
|
Back to top |
|
|
Terra_777
Joined: 27 Jun 2008 Posts: 216 Location: Sweden
|
Posted: Tue Apr 20, 2010 11:19 Post subject: |
|
|
the above script is for a memoryediting plugin so you don't need to be booted.
Chances are that when you got booted the changes made didnt get saved. _________________ I dun have any signature, I'm happy anyway. |
|
Back to top |
|
|
Tenshar
Joined: 18 Apr 2010 Posts: 13
|
Posted: Tue Apr 20, 2010 21:14 Post subject: |
|
|
hm, and how do I remove booting the player? |
|
Back to top |
|
|
Tenshar
Joined: 18 Apr 2010 Posts: 13
|
Posted: Sat Apr 24, 2010 22:26 Post subject: |
|
|
*cough*bump!*cough* |
|
Back to top |
|
|
Lokey
Joined: 02 Jan 2005 Posts: 158
|
Posted: Sun Apr 25, 2010 11:41 Post subject: |
|
|
In linux you have a few more options for mods without kicking player off server. In win, see terra's posts. _________________ Neversummer PW NWNx powered mayhem |
|
Back to top |
|
|
Tenshar
Joined: 18 Apr 2010 Posts: 13
|
Posted: Wed Apr 28, 2010 9:23 Post subject: |
|
|
Yea, I'm using his script, It boots me though |
|
Back to top |
|
|
Terra_777
Joined: 27 Jun 2008 Posts: 216 Location: Sweden
|
Posted: Wed Apr 28, 2010 13:19 Post subject: |
|
|
Install this: http://www.nwnx.org/phpBB2/viewtopic.php?t=1535
Then replace this;
Code: | #include "inc_letowrapperj"
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "godlypresence")!= OBJECT_INVALID)
{
FloatingTextStringOnCreature("You can't worship two gods!", oPC);
return;
}
else
{
CreateItemOnObject("godlypresence", oPC);
string sScript = Leto_GenerateLetoScriptModifyAbility(ABILITY_DEXTERITY, 2);
sScript += Leto_GenerateLetoScriptModifyAbility(ABILITY_CHARISMA, 2);
FloatingTextStringOnCreature("Applying ability bonuses.", oPC);
AssignCommand( GetModule(), Leto_ExecuteFileWritingOperation(oPC, sScript) );
}
} |
With this:
Code: | #include "nwnx_funcs"
void main( ){
object oPC = GetLastUsedBy( );
if( !GetIsPC( oPC ) ){
return;
}
else if( GetItemPossessedBy( oPC, "godlypresence" ) != OBJECT_INVALID ){
FloatingTextStringOnCreature( "You can't worship two gods!", oPC );
}
else{
CreateItemOnObject( "godlypresence", oPC );
FloatingTextStringOnCreature( "Applying ability bonuses.", oPC );
NWNXFuncs_ModAbilityScore( oPC, ABILITY_CHARISMA, 2 );
NWNXFuncs_ModAbilityScore( oPC, ABILITY_DEXTERITY, 2 );
}
} |
If you still get booted its not the leto-stuff unless you got it someplace more. _________________ I dun have any signature, I'm happy anyway. |
|
Back to top |
|
|
Paco's Revenge
Joined: 24 Jan 2009 Posts: 7
|
Posted: Thu Aug 12, 2010 0:25 Post subject: |
|
|
Quick question...where can I download leto 3.24 rather than 3.26? I found 3.25 but no 3.24?
Also if anyone is bored and wants to show me how to make the Letoscript work I will gladly give you carte blanche and free reign to our host computer through VNC. |
|
Back to top |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Thu Aug 12, 2010 14:33 Post subject: |
|
|
Paco's Revenge wrote: | Also if anyone is bored and wants to show me how to make the Letoscript work I will gladly give you carte blanche and free reign to our host computer through VNC. |
Don't make offers like that publicly, ever. It's quite bad for you.
As for your question, you can get 3+24 from Sourceforge |
|
Back to top |
|
|
|