Portal-Zone Gothic-Zone Gothic II-Zone Gothic 3-Zone Gothic 4-Zone Modifikationen-Zone Download-Zone Foren-Zone RPG-Zone Almanach-Zone Spirit of Gothic

 
 
 

Results 1 to 10 of 10
  1. View Forum Posts #1 Reply With Quote
    Provinzheld
    Join Date
    Nov 2010
    Location
    Irgendwo im Nirgendwo^^
    Posts
    292
     
    FelixderHobbit is offline

    Inventar leeren

    Hallo,
    Wie kann ich ein Inventar, leeren?

  2. View Forum Posts #2 Reply With Quote
    Schwertmeister
    Join Date
    May 2009
    Location
    Österreich/ Kärnten
    Posts
    775
     
    Umfi is offline
    Code:
        
    func void Foo()    
        {
    var int i; 
    i = Npc_GetInvItemBySlot(hero, 0,0); 
    
    if Hlp_IsValidItem(item)    
      {
            Npc_RemoveInvItem(hero, Hlp_GetInstanceId(item));
            Foo();
       };
            
    };
    Dann einfach Foo(); aufrufen.
    Meine Gothic II Modifikationen:
    Secret of Jumanga 1.0| Silvestermod 2011 | Secret of Jumanga 2.0
    Work in Progress:
    Zum Tode verurteilt
    Tools | Skripte für Modder:

    Sprachausgabe, problem? 1.3 | Pflanzenrespawn


  3. Visit Homepage View Forum Posts #3 Reply With Quote
    Exodus Sektenspinner's Avatar
    Join Date
    Jul 2004
    Location
    Karlsruhe
    Posts
    7,816
     
    Sektenspinner is offline
    Falls es dir genügt alle Items, die nicht Missionsitems sind zu entfernen nutze einfach Npc_ClearInventory.
    Für Spieler:
    Velaya # Velaya in English # Exodus Demo # Irrwichtel
    Tools für Modder:
    DiaDepp # DOPA-PARTER # zSlang
    Scripte für Modder:
    Ikarus Skriptpaket # Floats # Broadcasts

  4. View Forum Posts #4 Reply With Quote
    Provinzheld
    Join Date
    Nov 2010
    Location
    Irgendwo im Nirgendwo^^
    Posts
    292
     
    FelixderHobbit is offline
    Danke.
    Als nächstes müsste ich das Level auf 1 setzen. Im Prinzip alles auf den Normalstand... Jetzt habe ich:
    Code:
    Foo();
    other.attribute[ATR_STRENGTH] = 10;
    other.attribute[ATR_DEXTERITY] = 10;
    other.attribute[ATR_MANA_MAX] = 10;
    other.attribute[ATR_MANA] = 10;
    other.attribute[ATR_HITPOINTS_MAX] = 40;
    other.attribute[ATR_HITPOINTS] = 40;
    B_SetFightSkills 	(other, 10);
    other.lp		= 10;
    Edit: Hab grad ein Problem:
    Immer wenn ich Gothic 2 Starte, erscheint auf dem Bildschirm "Nicht Unterstützt" und wenn ich Strg+Alt+Entf drücke kommt das hier:
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Gothic2fehler.JPG 
Views:	23 
Size:	17.8 KB 
ID:	32987  
    Last edited by FelixderHobbit; 23.01.2011 at 22:03.

  5. Visit Homepage View Forum Posts #5 Reply With Quote
    Exodus Sektenspinner's Avatar
    Join Date
    Jul 2004
    Location
    Karlsruhe
    Posts
    7,816
     
    Sektenspinner is offline
    Quote Originally Posted by FelixderHobbit View Post
    Danke.
    Als nächstes müsste ich das Level auf 1 setzen. Im Prinzip alles auf den Normalstand... Jetzt habe ich:
    Code:
    Foo();
    other.attribute[ATR_STRENGTH] = 10;
    other.attribute[ATR_DEXTERITY] = 10;
    other.attribute[ATR_MANA_MAX] = 10;
    other.attribute[ATR_MANA] = 10;
    other.attribute[ATR_HITPOINTS_MAX] = 40;
    other.attribute[ATR_HITPOINTS] = 40;
    B_SetFightSkills 	(other, 10);
    other.lp		= 10;
    Edit: Hab grad ein Problem:
    Immer wenn ich Gothic 2 Starte, erscheint auf dem Bildschirm "Nicht Unterstützt" und wenn ich Strg+Alt+Entf drücke kommt das hier:
    Was du wohl noch zurücksetzen willst ist:

    Code:
    level
    exp
    exp_next
    hitchance[NPC_TALENT_1H]
    hitchance[NPC_TALENT_2H]
    hitchance[NPC_TALENT_BOW]
    hitchance[NPC_TALENT_CROSSBOW]
    aivar[REAL_STRENGTH]
    aivar[REAL_DEXTERITY]
    aivar[REAL_MANA_MAX]
    aivar[REAL_TALENT_1H]
    aivar[REAL_TALENT_2H]
    aivar[REAL_TALENT_BOW]
    aivar[REAL_TALENT_CROSSBOW]
    B_SetFightSkills(10) erhöht die Kampftalente um 10, das ist nicht das, was du willst. Evtl. gibt es noch andere Werte, die ich vergessen habe.

    Dein anderes DirectX Problem ist technischer Natur. Wahrscheinlich hilft ein Neustart des Rechners, ansonsten solltest du mal in der technischen Hilfe nachfragen.
    Für Spieler:
    Velaya # Velaya in English # Exodus Demo # Irrwichtel
    Tools für Modder:
    DiaDepp # DOPA-PARTER # zSlang
    Scripte für Modder:
    Ikarus Skriptpaket # Floats # Broadcasts

  6. View Forum Posts #6 Reply With Quote
    Teutonic Team Bonne6's Avatar
    Join Date
    Jun 2004
    Location
    Coburg, Erlangen
    Posts
    7,790
     
    Bonne6 is offline
    Quote Originally Posted by Sektenspinner View Post
    Dein anderes DirectX Problem ist technischer Natur. Wahrscheinlich hilft ein Neustart des Rechners, ansonsten solltest du mal in der technischen Hilfe nachfragen.
    Das Problem kommt bei Vista/Windows 7 (fast) immer, wenn man im Spiel Strg + Alt + Entf drückt (also Taskmanager öffnen will), da kommt anders als bei XP noch so ein Auswahlfenster und danach kommt dann die Meldung und G2 kann man vergessen

  7. View Forum Posts #7 Reply With Quote
    Provinzheld
    Join Date
    Nov 2010
    Location
    Irgendwo im Nirgendwo^^
    Posts
    292
     
    FelixderHobbit is offline
    Ja Danke geht nach Neustart wieder...

    Also, wie kann ich das Level ändern ?

  8. View Forum Posts #8 Reply With Quote
    lost in space  Milky-Way's Avatar
    Join Date
    Jun 2007
    Posts
    7,825
     
    Milky-Way is offline
    other.level = 1;

    Such mal nach der Classes.d und dort nach der C_NPC Klasse, da kannst du dir einige Eigenschaften aller Npc angucken. Dort siehst du allerdings auch (mindestens) ein Array, die aivars. Die einzelnen aivars sind in der Constants.d oder AI_Constants.d beschrieben. Die müsstest du theoretisch für alle Npc zurücksetzen. Eventuell ist das aber zuviel der Arbeit.

  9. View Forum Posts #9 Reply With Quote
    Provinzheld
    Join Date
    Nov 2010
    Location
    Irgendwo im Nirgendwo^^
    Posts
    292
     
    FelixderHobbit is offline
    oh sorry hatte das oben übersehen. werd ich gleich mal ausprobieren...

    Edit: Cool, es funktioniert!!!
    Danke!
    Last edited by FelixderHobbit; 24.01.2011 at 15:49.

  10. View Forum Posts #10 Reply With Quote
    Legende Lehona's Avatar
    Join Date
    Jul 2007
    Posts
    7,486
     
    Lehona is offline
    Quote Originally Posted by Milky-Way View Post
    other.level = 1;

    Such mal nach der Classes.d und dort nach der C_NPC Klasse, da kannst du dir einige Eigenschaften aller Npc angucken. Dort siehst du allerdings auch (mindestens) ein Array, die aivars. Die einzelnen aivars sind in der Constants.d oder AI_Constants.d beschrieben. Die müsstest du theoretisch für alle Npc zurücksetzen. Eventuell ist das aber zuviel der Arbeit.
    Nur mal als rein theoretische Methode (Mit Ikarus):

    Code:
    var int ptr; ptr = MEM_Alloc(100*4);
    MEM_CopyBytes(ptr, MEM_GetInstOffset(NPC)+648 /*Offset zwischen Anfang des oCNPCs und den AIVars*/ , 100*4);
    MEM_Free(ptr);


    Dein IQ bestimmt, wie hässlich du sein darfst.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Impressum | Link Us | intern
World of Gothic © by World of Gothic Team
Gothic, Gothic 2 & Gothic 3 are © by Piranha Bytes & Egmont Interactive & JoWooD Productions AG, all rights reserved worldwide