Author Topic: legit pvp server script  (Read 17902 times)

Offline Tea-cup

  • Hero Member
  • *****
  • Posts: 916
    • View Profile
legit pvp server script
« Reply #30 on: November 27, 2004, 05:40:22 PM »
Quote
oh so thats how it works...   :huh:

nope don't get it...
you will have to explain it better to me cuz i don't understand anyting of it...
i figured out how to open it but then i get abouth 100 pages of strange texts...
[snapback]11563[/snapback]
100 pages? You did try to open that ziped archive whit a text editor??  :blink:
Well, just open notepad.exe, then open the file spell.2da whit it. It should give a load of colums and lines whit information about the spells.
Can\'t upload the spell.2da itself, if gives this:
[div class=\"borderwrap\"]
  [div class=\"formsubtitle\"]THE FOLLOWING ERROR(S) WERE FOUND[/div]
  [div class=\"tablepad\"][span class=\"postcolor\"]Upload failed. You are not permitted to upload a file with that file extension.[/span][/div]

[/div]
So I\'ll upload it as txt.

-Mel

Offline Pazuul

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://
legit pvp server script
« Reply #31 on: November 27, 2004, 06:15:40 PM »
wy does it gives an error at abouth evry line then here?

edit: sorry wrong topic :P

edit2: ok i got the .2da thingie, try opening it in word then you will sie wat i mean :P
but it worked in notepad
« Last Edit: November 28, 2004, 05:57:32 AM by Pazuul »
Pazuul - Leader of Minions

Offline Pazuul

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://
legit pvp server script
« Reply #32 on: November 30, 2004, 12:59:58 PM »
if ((GetItemHasItemProperty(oItem, ITEM_PROPERTY_AC_BONUS_VS_RACIAL_GROUP) == TRUE)
|| GetPlotFlag(oItem) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_BONUS_FEAT) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_CAST_SPELL) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_DAMAGE_REDUCTION) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_DAMAGE_RESISTANCE) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_IMMUNITY_DAMAGE_TYPE) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_IMMUNITY_MISCELLANEOUS) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_IMMUNITY_SPECIFIC_SPELL) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_IMMUNITY_SPELL_SCHOOL) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_IMMUNITY_SPELLS_BY_LEVEL) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_ATTACK_BONUS_VS_RACIAL_GROUP) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_ON_HIT_CAST_SPELL) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_REGENERATION) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_SPELL_RESISTANCE) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_DAMAGE_BONUS_VS_RACIAL_TYPE) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_ENHANCEMENT_BONUS_VS_RACIAL_GROUP) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_REGENERATION_VAMPIRIC) == TRUE)

{
    DestroyObject(oItem);
}
    oItem = GetNextItemInInventory(oPC);
}
    for ( nCount = 0; nCount < NUM_INVENTORY_SLOTS; nCount++ )
{
    oItem = GetItemInSlot(nCount,oPC);


This is just a part of my filter script that works. I think those are all the things I need to filter to get my server as gs or do I need any more or less?

Well anyway, the ON_HIT_CAST_SPELL and DAMAGE_BONUS_VS_RACIAL_TYPE don't work. Did I wrote them wrong or someting? Can somwone tell how I should put those in?

And I also want to add a new script to make a check on the item prices for lvl 20 and lvl 40, the price for lvl 20 should be maximum 130.000 and for lvl 40 maximum 500.000 how do I script that? Should be an onequip script...
Pazuul - Leader of Minions

Offline Tea-cup

  • Hero Member
  • *****
  • Posts: 916
    • View Profile
legit pvp server script
« Reply #33 on: November 30, 2004, 03:34:32 PM »
Quote
if ((GetItemHasItemProperty(oItem, ITEM_PROPERTY_AC_BONUS_VS_RACIAL_GROUP) == TRUE)
|| GetPlotFlag(oItem) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_BONUS_FEAT) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_CAST_SPELL) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_DAMAGE_REDUCTION) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_DAMAGE_RESISTANCE) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_IMMUNITY_DAMAGE_TYPE) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_IMMUNITY_MISCELLANEOUS) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_IMMUNITY_SPECIFIC_SPELL) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_IMMUNITY_SPELL_SCHOOL) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_IMMUNITY_SPELLS_BY_LEVEL) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_ATTACK_BONUS_VS_RACIAL_GROUP) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_ON_HIT_CAST_SPELL) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_REGENERATION) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_SPELL_RESISTANCE) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_DAMAGE_BONUS_VS_RACIAL_TYPE) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_ENHANCEMENT_BONUS_VS_RACIAL_GROUP) == TRUE
|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_REGENERATION_VAMPIRIC) == TRUE)

{
    DestroyObject(oItem);
}
    oItem = GetNextItemInInventory(oPC);
}
    for ( nCount = 0; nCount < NUM_INVENTORY_SLOTS; nCount++ )
{
    oItem = GetItemInSlot(nCount,oPC);


This is just a part of my filter script that works. I think those are all the things I need to filter to get my server as gs or do I need any more or less?

Well anyway, the ON_HIT_CAST_SPELL and DAMAGE_BONUS_VS_RACIAL_TYPE don't work. Did I wrote them wrong or someting? Can somwone tell how I should put those in?

And I also want to add a new script to make a check on the item prices for lvl 20 and lvl 40, the price for lvl 20 should be maximum 130.000 and for lvl 40 maximum 500.000 how do I script that? Should be an onequip script...
[snapback]11748[/snapback]
Well, you need more yes, like removing the arcane spellfailure. And negatif bonuses. Double adding those gives bugs for example. Also, gs filter does filter items for their type too. Like containers.

PS. If you want a gs like filter you need to add lot and lots more code.

-Mel

Offline Pazuul

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://
legit pvp server script
« Reply #34 on: December 01, 2004, 08:24:40 AM »
Ok, I'm not going to post the full script here now but now gs is on again I wrote evryting that gets filtered (says in journal) down and putted it in the filter) only 2 of the properties don't work, just need to know wy they don't work...

|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_ENHANCEMENT_BONUS_VS_SPECIFIC_ALIGNMENT) == TRUE

|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_ON_HIT_CAST_SPELL) == TRUE
Pazuul - Leader of Minions

Offline Tea-cup

  • Hero Member
  • *****
  • Posts: 916
    • View Profile
legit pvp server script
« Reply #35 on: December 01, 2004, 11:52:49 AM »
Quote
Ok, I'm not going to post the full script here now but now gs is on again I wrote evryting that gets filtered (says in journal) down and putted it in the filter) only 2 of the properties don't work, just need to know wy they don't work...

|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_ENHANCEMENT_BONUS_VS_SPECIFIC_ALIGNMENT) == TRUE

|| GetItemHasItemProperty(oItem, ITEM_PROPERTY_ON_HIT_CAST_SPELL) == TRUE
[snapback]11794[/snapback]
Nice typo's  :P
ITEM_PROPERTY_ENHANCEMENT_BONUS_VS_SPECIFIC_ALIGNE[/span]MENT
ITEM_PROPERTY_[span style=\'color:red\']ONHITCASTSPELL


-Mel

Offline Pazuul

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://
legit pvp server script
« Reply #36 on: December 02, 2004, 03:15:04 PM »
lol thx.
that will prolly work now then :D

shouldn't we make a new forum topic here like helping pazuul with his server or someting? :P
Pazuul - Leader of Minions

Offline |- Shion -|

  • Full Member
  • ***
  • Posts: 213
    • MSN Messenger - kai.beyblade@zipmail.com.br
    • AOL Instant Messenger - Not Have
    • Yahoo Instant Messenger - Not have
    • View Profile
    • http://Not Have
    • Email
legit pvp server script
« Reply #37 on: December 06, 2004, 05:51:08 PM »
Quote
lol thx.
that will prolly work now then :D

shouldn't we make a new forum topic here like helping pazuul with his server or someting? :P
[snapback]11870[/snapback]
To make it more easy to ya , if ya not know what is exactly the name of the proprity , just search for then on Script menu in tool set in CONSTANT section and just type what that constant menu show exactly to ya.

And about spell script , click on New scrip and click on NWN resource and search for files than start with name like X2_s0_ , he will show to ya some spell script . Just wait a while , im gonna get to ya pazuul a full spell script list or check the 2da spells as mel told to ya , seems more easy  ;)

Anytime!!
« Last Edit: December 06, 2004, 05:52:43 PM by |- Shion -| »

"Why to be a Kage ...... is our dream"
"The Failure is a new opornutity to start again better unit ya reach the Perfection."
"The Failed one will go to surpass the Genius with hard work"
--------------------------------------------------------------------------------------------
|- Shion -| Lord of Doriath -=Master of the Order of Iluvatar=-

Offline |- Shion -|

  • Full Member
  • ***
  • Posts: 213
    • MSN Messenger - kai.beyblade@zipmail.com.br
    • AOL Instant Messenger - Not Have
    • Yahoo Instant Messenger - Not have
    • View Profile
    • http://Not Have
    • Email
legit pvp server script
« Reply #38 on: December 06, 2004, 05:57:01 PM »
Quote
Quote
I wonder wich language you speak cuz  I kinda don't understand anyting of it :P
[snapback]11174[/snapback]

Get a book about the C program langue, something like this.
And 10 seconds search on the web already gived me this small tutorial how to make a while loop.
I really can't start to give you whole lessons how to program in C.

-Mel
[snapback]11178[/snapback]
Hell yeah , teaching C++ not is that simple as ppls thinks , for example a guy to mastery 100% the C++ language without any error that takes like 8 years of script experience since C++ and JAva is one of most hardest language. But actually my especialization today is PASCAL with Borland Delphi interface or Bison and FLEX on LINUX. That depend on what my boss on my work ask me to do.
And pazuul if ya want to learn how to scipt really in less than 1 year , ya need a lot of dedication. Starting the script on ZERO with nothing is one thing , and copy and paste is another thing  :glare:  i hope than ya understad pazuul

Anytime!!

"Why to be a Kage ...... is our dream"
"The Failure is a new opornutity to start again better unit ya reach the Perfection."
"The Failed one will go to surpass the Genius with hard work"
--------------------------------------------------------------------------------------------
|- Shion -| Lord of Doriath -=Master of the Order of Iluvatar=-

Offline Fury

  • Newbie
  • *
  • Posts: 28
    • MSN Messenger - Asgardloki@hotmail.com
    • View Profile
    • http://www.piv.pivpiv.dk
    • Email
legit pvp server script
« Reply #39 on: December 21, 2004, 07:28:24 AM »
Quote
good to know, then how do i make a loop?
and how do i unequip all items to scan them...
and reequip after scan,
i also want to destroy items in stead of booting players...
[snapback]11163[/snapback]

pity it doesnt work, and the download is broken