Ok. I've been bizy. but I'm now able to work on this more. So I got My handin npc working but I'm having a bit of a hard time getting the Charm File to work. I Have some questions to help me figure this out.
First, How do I name my .pl? Charm77640.pl or just 77640.pl. Second, Whats a Good reference for building my Charm file. Here This Code here Code:
sub EVENT_SCALE_CALC Code:
my $charge = 5; Ok Thanks. |
Items have a field named charmfile. What you put in there determines which perl file it uses for scaling.
If you look at the whole LDDAugText.pl file you'll see down at the bottom that $charge is used to set the scale. It is a local variable declared in that script. |
I got My Blade of Vesagran set to Scale but I'm having a hard time setting the Charmfile script. I wandering if I should use Charm of the Brotherhoods charmfile scripts $matchcount for this. Reason is that no matter how many Rift Shards I give to the handin npc the items stats done go up. But it has no stats atm. So that means that its set right just not using the right type of charm file script or I didn't type the script right. My charmfile script.
Code:
sub EVENT_SCALE_CALC { |
If you don't set the charmfile on an item it won't scale because the script is never called.
What is the trouble you're having setting the charmfile field on the item? If you use eqitems you can just type it in the box, or you can use a sql query to set it. When you talk about using a local variable defined in another script it makes me think you really don't understand how perl works. Those variables are defined in that script to be used there, they are not global and can't be used elsewhere. Without seeing your npc script I won't even try to guess at whatever that problem might be. |
Make sure the NPC you are handing items to is enabled for qglobals in the npc_types table. There is a field for them and it needs to be 1, not 0.
|
Look at the first page you'll see my full npc script But I figured out what it is. In order for my npc to take the item you need to give in 4 at a time not just one or two. A small part of my script.
Code:
if(plugin::check_handin(\%itemcount, 132509 => 4)) |
WARNING: untested and I just got in from an after work meetup that involved a few beers..
Your logic is heavily flawed. If i have never turned in a single item, thus no quest global yet, i automatically get the item at half power. Additionally once I start turning in items it will go up in 10% increments from 0%. Also, there is no limit to how high the item will scale past 100%. Someone could easily exploit this to make the item much much more powerful. Finally, you have more { than } so the script is in error and will never compile. Code:
sub EVENT_SCALE_CALC { |
If you never pointed out the { and } I would have never noticed it. Which may be why it didn't work for me. I need to pay more attention to stuff like that. -tested it and I Got it to work with out using the code you just gave me. But I'll keep it as a back up to see which one works better to my liking. But thank you tho. If you didn't mention the } I never would have go it to work.-
Thank you. Edit1 Just now i have to figure out what its using as its modifier. After give 10 I have like half stats. Edit2 I got it working. Thanks guys. |
All times are GMT -4. The time now is 04:54 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.