Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Sakis

Members
  • Posts

    363
  • Joined

  • Last visited

    Never

Everything posted by Sakis

  1. @egoninja: > I was thinking about Xlink but im just gonna wait till monster hunter 2nd g is out for Psp because it gives online Infastructure! > Hope I can import my mfh2 save file though. > I beat tigrex im at Hr:2,Got dragon halo bow, all death stench armor, > devil slicer, Kut-ku stave 3, First Elder Dragon Kill, Chameleos and kirin. Im making it out in the world of hunting! thats awesome i would import mines too but i lost my psp with my data on it
  2. Sakis

    MY NAME

    @misagiwaffle: > wow it comes pretty close huh? but i came up with that when i was like five and its copyrighted. u must be the creator of invader zim then…also he is right don't run away it would of gone soon enough though
  3. Sakis

    MY NAME

    u are a very sly fox magic
  4. Sorry but I'm am still having trouble with giving start up weapons to classes and stuff…it never does it but Kite helped me out with the start up item one though but the weapons section is not working at all. It is getting me frustrated right now with that problem :cry:
  5. Sakis

    WIP-GUI.

    @pudu: > My first GUI..not totaly finished. :azn: > > [![](http://img397.imageshack.us/img397/2938/29882528.th.jpg)](http://img397.imageshack.us/my.php?image=29882528.jpg) nice GUI there…like the design
  6. @Kite: > I mainly just need someone to test scripts after i make them. > If you do that,that will get you mod access,and a super rare item. > Anyway let's continue this is PM,so we don't get off topic. yeah sure np…same for u just hit my pm when u need some help or something
  7. sweet and if u want me to help you out with some stuff on your game then i will try and help u out as best as i can also kite…mutual co-op XD
  8. @Kite: > Ok if it does not work let me know,it works for mine. > If you need anymore type of scripts let me know. :cheesy: > > Kite it works and now i just have more to actually try and do like a pet npc system and also a summon system for one of my many 40+ classes that I have XD yay me!!!
  9. @Kite: > I pm'ed him the way to fix it with very little scripting. thanks i will try it out when i begin to work on my game again…its just that I really had some trouble with the script and stuff
  10. Okay I am trying to do the whole item start up for my games new classes and stuff but I am wondering is this how my classes suppose to look: ``` [CLASS] Name=Slayer MaleSprite=1 FemaleSprite=2 Desc=A warrior amongst others and is very useful in swords. STR=3 DEF=2 SPEED=3 MAGI=1 MAP=1 X=25 Y=9 Locked=0 [StartUp] Weapon=4 Armor=0 Shield=0 Helmet=0 Wepdur=0 Armdur=0 Shldur=0 Hlmdur=0 ``` I just added the start up stuff but it still didn't work when i had the code in it…anyone can help and here is my main too. ``` ' Eclipse Evolution 2.7 Scripting File ' Global Variables Public GameName Public MAX_MAPS Public MOTD ' Color Constants Public Const BLACK = 0 Public Const BLUE = 1 Public Const GREEN = 2 Public Const CYAN = 3 Public Const RED = 4 Public Const MAGENTA = 5 Public Const BROWN = 6 Public Const GREY = 7 Public Const DARKGREY = 8 Public Const BRIGHTBLUE = 9 Public Const BRIGHTGREEN = 10 Public Const BRIGHTCYAN = 11 Public Const BRIGHTRED = 12 Public Const PINK = 13 Public Const YELLOW = 14 Public Const WHITE = 15 ' Admin Constants Public Const ADMIN_MONITER = 1 Public Const ADMIN_MAPPER = 2 Public Const ADMIN_DEVELOPER = 3 Public Const ADMIN_CREATOR = 4 ' Executes when the server initially loads. Sub OnServerLoad() GameName = GetVar("Data.ini", "CONFIG", "GameName") MAX_MAPS = GetVar("Data.ini", "MAX", "MAX_MAPS") MOTD = GetVar("MOTD.ini", "MOTD", "Msg") End Sub ' Executes when the scripts are reloaded. Sub OnScriptReload() GameName = GetVar("Data.ini", "CONFIG", "GameName") MAX_MAPS = GetVar("Data.ini", "MAX", "MAX_MAPS") MOTD = GetVar("MOTD.ini", "MOTD", "Msg") End Sub ' Executes the MOTD is changed by the client. Sub ChangeMOTD() MOTD = GetVar("MOTD.ini", "MOTD", "Msg") End Sub ' Executes when a new character is created. Sub OnNewChar(Index, CharNum) End Sub ' Executes every second, based on the server time. Sub TimedEvent(Hours, Minutes, Seconds) If Minutes = 0 Then If Seconds = 0 Then Call AdminMsg("Don't forget to vote for Eclipse.", YELLOW) End If End If End Sub ' Executes when a player presses the CONTROL key. Sub OnAttack(Index, Damage) Dim Target Dim Bonus Dim HR Dim LR If GetPlayerWeaponSlot(index) > 0 then HR = WeaponLevel(index) * 5 LR = WeaponLevel(index) Bonus = Rand(HR, LR) Else Bonus = 0 End If If Int(Damage) > 0 Then If Int(GetPlayerTarget(Index)) > 0 Then Call AddWepEXP(index, 1) Target = GetPlayerTarget(Index) Call DamagePlayer(Index, Target, (Damage + Bonus)) Else Target = GetPlayerTargetNPC(Index) Call AddWepEXP(index, 1) Call DamageNPC(Index, Target, (Damage + Bonus)) End If End If End Sub Sub OnArrowHit(Index, Damage) Dim Target Dim Bonus Dim HR Dim LR HR = WeaponLevel(index) * 5 LR = WeaponLevel(index) Bonus = Rand(HR, LR) If Int(Damage) > 0 Then If Int(GetPlayerTarget(Index)) > 0 Then Call AddWepEXP(index, 1) Target = GetPlayerTarget(Index) Call DamagePlayer(Index, Target, (Damage + Bonus)) Else Target = GetPlayerTargetNPC(Index) Call AddWepEXP(index, 1) Call DamageNPC(Index, Target, (Damage + Bonus)) End If End If End Sub Sub PlayerHit(Index, NPCNum, Damage) If Damage > 0 then Call NPCAttack(NPCNum, Index, Damage) End If End Sub ' Executes when a hotkey is pressed client-side. Sub HotScript(Index, KeyID) Select Case KeyID ' Executes when any player presses the PageUp key. Case 1 ' Executes when any player presses the Delete key. Case 2 ' Executes when players press the End key. Case 3 ' Executes when players press the PageDown key. Case 4 End Select End Sub ' Executes when something on a custom menu is clicked. Sub MenuScripts(Index, Clicked_Index, Menu_Type) Dim MenuTitle Dim FieldMessage MenuTitle = getplayermenuclicktitle(Index) FieldMessage = getplayermenuclickmsg(Index) Select Case Menu_Type Case 1 Call PlayerMsg(Index, "Clicked picture number " & Clicked_Index & " on the menu named " & MenuTitle, YELLOW) Case 2 Call PlayerMsg(Index, "Clicked field number " & Clicked_Index & " on the menu named " & MenuTitle & ". The field text was " & FieldMessage, YELLOW) Case 3 Call PlayerMsg(Index, "Clicked label number " & Clicked_Index & " on the menu named " & MenuTitle, YELLOW) End Select End Sub ' Executes when a player logs into the game. Sub JoinGame(Index) If GetPlayerAccess(Index) = 0 Then Call GlobalMsg(GetPlayerName(Index) & " has joined " & GameName & "!", GREY) Else Call GlobalMsg("Administrator " & GetPlayerName(Index) & " has joined " & GameName & "!", YELLOW) End If Call PlayerMsg(Index, "Welcome to " & GameName & "!", WHITE) If LenB(MOTD) 0 Then Call PlayerMsg(Index, "MOTD: " & MOTD, BRIGHTCYAN) End If Call SendWhosOnline(Index) dim maxplayers maxplayers = GetVar("data.ini", "MAX", "MAX_PLAYERS) Dim playerip playerip = GetPlayerIP(index) Dim i i = 0 Do While i < maxplayers dim checkip checkip = GetPlayerIP(i) If checkip = playerip Then Call HackingAttempt(index, "Multi-Client Logging") i = maxplayers + 1 end if i = i + 1 loop Call PutVar("var.ini", GetPlayerName(index), "startup", "yes") End If End Sub '******************************** Sub Give_Item(index, number, durability) '******************************** Dim slot slot = 1 Do While slot < 25 If Getplayerinvitemnum( index, Int( slot ) ) = 0 Then Call SetPlayerInvItemNum(index, Int( slot ), Int( number ) ) Call SetPlayerInvItemDur(index, Int( slot ), Int( durability ) ) Call SetPlayerInvItemValue(index, Int( slot ), Int(0) ) Call SendInventoryUpdate(index, Int(slot) ) slot = 25 End If slot = slot + 1 Loop End Sub ' Executes when a player logs out of the game. Sub LeftGame(Index) If GetPlayerAccess(Index) = 0 Then Call GlobalMsg(GetPlayerName(Index) & " has left " & GameName & "!", GREY) Else Call GlobalMsg("Administrator " & GetPlayerName(Index) & " has left " & GameName & "!", YELLOW) End If End Sub ' Executes when a players experience exceeds the next level requirement. Sub PlayerLevelUp(Index) Dim TotalExp Do While GetPlayerExp(Index) >= GetPlayerNextLevel(Index) TotalExp = GetPlayerExp(Index) - GetPlayerNextLevel(Index) Call SetPlayerLevel(Index, GetPlayerLevel(Index) + 1) Call SetPlayerPOINTS(Index, GetPlayerPOINTS(Index) + 1) Call SetPlayerExp(Index, TotalExp) Loop Call BattleMsg(Index, "You have " & GetPlayerPOINTS(Index) & " stat points.", BRIGHTBLUE, 0) If GetPlayerLevel(Index) = 20 Then Call PlayerMsg(Index, "You need to advance before you can continue your training!!!", 4) Exit Sub End If If GetPlayerLevel(Index) = 40 Then If GetPlayerClass(index) > 2 And GetPlayerClass(index) < 6 Then Call PlayerMsg(Index, "You need to advance before you can continue your training!!!", 4) Exit Sub End If End If If GetPlayerLevel(Index) = 60 Then If GetPlayerClass(index) > 5 And GetPlayerClass(index) < 9 Then Call PlayerMsg(Index, "You need to advance before you can continue your training!!!", 4) Exit Sub End If End If End Sub ' Executes when a player uses one of the points given on an attribute to level up. Sub UsingStatPoints(Index, PointType) Select Case PointType Case 0 If GetPlayerSTR(Index) + 1 > 1000 Then Call BattleMsg(Index, "You have maxed your strength!", BRIGHTRED, 0) Exit Sub End If Call SetPlayerSTR(Index, GetPlayerSTR(Index) + 1) Call BattleMsg(Index, "You have gained more strength!", WHITE, 0) Case 1 If GetPlayerDEF(Index) + 1 > 1000 Then Call BattleMsg(Index, "You have maxed your defence!", BRIGHTRED, 0) Exit Sub End If Call SetPlayerDEF(Index, GetPlayerDEF(Index) + 1) Call BattleMsg(Index, "You have gained more defense!", WHITE, 0) Case 2 If GetPlayerMAGI(Index) + 1 > 1000 Then Call BattleMsg(Index, "You have maxed your magic!", BRIGHTRED, 0) Exit Sub End If Call SetPlayerMAGI(Index, GetPlayerMAGI(Index) + 1) Call BattleMsg(Index, "You have gained more magic!", WHITE, 0) Case 3 If GetPlayerSPEED(Index) + 1 > 1000 Then Call BattleMsg(Index, "You have maxed your speed!", BRIGHTRED, 0) Exit Sub End If Call SetPlayerSPEED(Index, GetPlayerSPEED(Index) + 1) Call BattleMsg(Index, "You have gained more speed!", WHITE, 0) End Select ' Remove one point after the sub in question is done Call SetPlayerPOINTS(Index, GetPlayerPOINTS(Index) - 1) End Sub ' Executes when a player steps onto a scripted tile. Sub ScriptedTile(Index, Script) Select Case Script Case 0 Call PlayerMsg(Index, "This scripted tile has no apparent use.", WHITE) Exit Sub Case Else Call PlayerMsg(Index, "No tile script found. Please contact an admin to solve this problem.", WHITE) Exit Sub End Select End Sub ' Executes when a player clicks on an OnClick tile. Sub OnClick(Index, Script) Select Case Script Case 0 Call PlayerMsg(Index, "This scripted tile has no apparent use.", WHITE) Exit Sub Case Else Call PlayerMsg(Index, "No tile script found. Please contact an admin to solve this problem.", WHITE) Exit Sub End Select End Sub ' Out-dated: Executes when a player chooses yes or no on a player prompt. Sub PlayerPrompt(Index, Prompt, Value) If Prompt = 6 Then Select Case Value Case 0 Call GlobalMsg("Hi This is a Yes answer!", CYAN) Case 1 Call GlobalMsg("This is case 1?", CYAN) End Select Else Select Case Value Case 0 Call GlobalMsg("Hi This is a No answer!", RED) Case 1 Call GlobalMsg("This is no case 1?", RED) End Select End If End Sub ' Out-dated: Executes query box responses. Sub QueryBox(Index, Prompt) Value = GetVar("responses.ini", "Responses", CStr(Index)) End Sub ' Executes every time a player drops an item. Sub OnItemDrop(Index, Map, ItemNum, ItemVal, ItemDur, ItemIndex, InvSlot) End Sub ' Executes each time a player changes map. Sub OnMapLoad(Index, OldMap, NewMap) End Sub ' Executes whenever an NPC is killed. ' Note: Death occurs as normal externally to this script. Sub OnNPCDeath(Index, Map, NPCNum, NPCIndex) Call BattleMsg(Index, "You killed a " & getnpcname(NPCNum) & ".", BRIGHTRED, 0) End Sub ' Executes when a player is killed by another. ' Note: Death occurs as normal externally to this script. Sub OnPVPDeath(Attacker, Victim) Call GlobalMsg(GetPlayerName(Victim) & " has been killed by " & GetPlayerName(Attacker), BRIGHTRED) End Sub ' Executes when a player dies in an arena by another player. Sub OnArenaDeath(Attacker, Victim) Dim Map Dim X Dim Y Dim Data1 Dim Data2 Dim Data3 Map = GetPlayerMap(Victim) X = GetPlayerX(Victim) Y = GetPlayerY(Victim) Call GlobalMsg(GetPlayerName(Victim) & " has been defeated in the arena by " & GetPlayerName(Attacker), BRIGHTRED) Call SetPlayerHP(Victim, GetPlayerMaXHP(Victim)) Call SetPlayerMP(Victim, GetPlayerMaXMP(Victim)) Call sendHp(Victim) Call sendMP(Victim) Data1 = GetTileData1(Map, X, Y) Data2 = GetTileData2(Map, X, Y) Data3 = GetTileData3(Map, X, Y) Call PlayerWarp(Victim, Data1, Data2, Data3) End Sub ' Executes whenever a player casts a scripted spell. Sub ScriptedSpell(Index, Script) Select Case Script Case 0 Call PlayerMsg(Index, "This scripted spell has no apparent use.", WHITE) Exit Sub Case Else Call PlayerMsg(Index, "No spell script found. Please contact an admin to solve this problem.", WHITE) Exit Sub End Select End Sub ' Executes whenever a scripted NPC does an action. Sub ScriptedNPC(index, Script) On Error Resume next Dim status Dim start_msg Dim questing_msg Dim end_msg Dim completed_msg Dim has_needed Dim need_count Dim give_count Dim slot Dim count Dim found Dim number Dim durability Dim value Dim experience Dim name Select Case Script Case 0 If getvar("scripts\mapextras\" & GetPlayerMap(index) & ".ini", "QUEST", "Start_Msg") "" Then If getvar("scripts\charextras\" & GetPlayerName(index) & ".ini", "QUEST", GetPlayerMap(index) ) < 0 Then Call putvar("scripts\charextras\" & GetPlayerName(index) & ".ini", "QUEST", GetPlayerMap(index), 0 ) End If status = getvar("scripts\charextras\" & GetPlayerName(index) & ".ini", "QUEST", GetPlayerMap(index)) name=getvar("scripts\mapextras\" & GetPlayerMap(index) & ".ini", "QUEST", "name") Select Case status Case 0 start_msg=getvar("scripts\mapextras\" & GetPlayerMap(index) & ".ini", "QUEST", "Start_Msg") Call playermsg(index, name & " : " & start_msg, 15) Call putvar("scripts\charextras\" & GetPlayerName(index) & ".ini", "QUEST", GetPlayerMap(index), 1 ) Case 1 need_count=getvar("scripts\mapextras\" & GetPlayerMap(index) & ".ini", "QUEST", "need_count") count=1 slot=1 has_needed=0 'CHECK FOR ITEMS Do While count=Int(value) Then has_needed=has_needed+1 slot=25 End If End If slot=slot+1 Loop count=count+1 Loop 'ACTUALLY TAKE ITEMS If has_needed >= Int(need_count) Then has_needed=1 count=1 Do While count=Int(value) Then Call quest_Take_Item(index, number, value) Call Battlemsg(index, name & " removed an item from your inventory.", 15, 0) slot=25 End If End If slot=slot+1 Loop count=count+1 Loop Else has_needed=0 End If 'CHECK IF ITEMS WERE TAKEN If has_needed = 0 Then questing_msg=getvar("scripts\mapextras\" & GetPlayerMap(index) & ".ini", "QUEST", "Questing_Msg") Call playermsg(index, name & " : " & questing_msg, 15) Else end_msg=getvar("scripts\mapextras\" & GetPlayerMap(index) & ".ini", "QUEST", "end_Msg") Call playermsg(index, name & " : " & end_msg, 15) Call putvar("scripts\charextras\" & GetPlayerName(index) & ".ini", "QUEST", GetPlayerMap(index), 2 ) Call scriptedNPC(index, 0) End If Case 2 'GIVE THE ITEMS AS REWARD, DONT UNLESS ENOUGH SPACE, IF GIVEN BECOME 3 'GET NUMBER OF FREE SLOTS slot=1 count=0 Do While slot < 25 If Int(getplayerinvitemnum(index,slot))=0 Then count=count+1 End If slot=slot+1 Loop 'CHECK ENOUGH SPACE FOR ITEMS BEING GIVEN give_count=getvar("scripts\mapextras\" & GetPlayerMap(index) & ".ini", "QUEST", "give_count") If Int(count)>=Int(give_count) Then 'GIVE ITEMS count=1 Do While Int(count) 0 Then Call PlayerMsg(Index, "Social Commands:", WHITE) Call PlayerMsg(Index, """msghere = Global Admin Message", WHITE) Call PlayerMsg(Index, "=msghere = Private Admin Message", WHITE) Call PlayerMsg(Index, "Available Commands: /admin, /loc, /mapeditor, /warpmeto, /warptome, /warpto, /setsprite, /mapreport, /kick, /ban, /edititem, /respawn, /editnpc, /motd, /editshop, /ban, /editspell", WHITE) End If Exit Sub Case "/warpmeto" If GetPlayerAccess(Index) > 0 Then PlayerID = FindPlayer(TextSay(1)) If PlayerID > 0 Then Call PlayerWarp(Index, GetPlayerMap(PlayerID), GetPlayerX(PlayerID), GetPlayerY(PlayerID)) Call PlayerMsg(Index, "You have been warped to " & GetPlayerName(PlayerID) & ".", BROWN) Else Call PlayerMsg(Index, "Player is not online.", WHITE) End If End If Exit Sub Case "/warptome" If GetPlayerAccess(Index) > 0 Then PlayerID = FindPlayer(TextSay(1)) If PlayerID > 0 Then Call PlayerWarp(PlayerID, GetPlayerMap(Index), GetPlayerX(Index), GetPlayerY(Index)) Call PlayerMsg(PlayerID, "You have been warped to " & GetPlayerName(Index) & ".", BROWN) Else Call PlayerMsg(Index, "Player is not online.", WHITE) End If End If Exit Sub Case "/warpto" If GetPlayerAccess(Index) > 0 Then MapNum = TextSay(1) If MapNum > 0 And MapNum 0 Then Call PlayerMapDropItem(Index, GetPlayerWeaponSlot(Index), 0) End If If GetPlayerArmorSlot(Index) > 0 Then Call PlayerMapDropItem(Index, GetPlayerArmorSlot(Index), 0) End If If GetPlayerHelmetSlot(Index) > 0 Then Call PlayerMapDropItem(Index, GetPlayerHelmetSlot(Index), 0) End If If GetPlayerShieldSlot(Index) > 0 Then Call PlayerMapDropItem(Index, GetPlayerShieldSlot(Index), 0) End If If GetPlayerLegsSlot(Index) > 0 Then Call PlayerMapDropItem(Index, GetPlayerLegsSlot(Index), 0) End If If GetPlayerRingSlot(Index) > 0 Then Call PlayerMapDropItem(Index, GetPlayerRingSlot(Index), 0) End If If GetPlayerNecklaceSlot(Index) > 0 Then Call PlayerMapDropItem(Index, GetPlayerNecklaceSlot(Index), 0) End If End Sub ' Executes whenever somebody dies outside of an arena. Sub OnDeath(Index) Dim MapNum Dim ClassID Dim X Dim Y If GetMapBootMap(Index) > 0 Then Call PlayerWarp(Index, GetMapBootMap(Index), GetMapBootX(Index), GetMapBootY(Index)) Else ClassID = GetPlayerClass(Index) MapNum = GetVar("Classes\Class" & ClassID & ".ini", "CLASS", "Map") X = GetVar("Classes\Class" & ClassID & ".ini", "CLASS", "x") Y = GetVar("Classes\Class" & ClassID & ".ini", "CLASS", "y") Call PlayerWarp(Index, MapNum, X, Y) End If End Sub ' Executes whenever a scripted item is used or double clicked. Sub ScriptedItem(Index, Script) Select Case Script Case 0 Call PlayerMsg(Index, "This scripted item has no apparent use.", WHITE) Exit Sub Case Else Call PlayerMsg(Index, "No item script found. Please contact an admin to solve this problem.", WHITE) Exit Sub End Select End Sub ' Map Attributes Sub SetBlank(Map, X, Y) Call SetAttribute(Map, X, Y, 0, 0, 0, 0, "", "", "") End Sub Sub SetBlock(Map, X, Y) Call SetAttribute(Map, X, Y, 1, 0, 0, 0, "", "", "") End Sub Sub SetWarp(Map, X, Y, WarpMap, WarpX, WarpY) Call SetAttribute(Map, X, Y, 2, WarpMap, WarpX, WarpY, "", "", "") End Sub Sub SetItem(Map, X, Y, ItemID, ItemValue) Call SetAttribute(Map, X, Y, 3, ItemID, ItemValue, 0, "", "", "") End Sub Sub SetNPCAvoid(Map, X, Y) Call SetAttribute(Map, X, Y, 4, 0, 0, 0, "", "", "") End Sub Sub SetKeY(Map, X, Y, KeyID, KeyTake) Call SetAttribute(Map, X, Y, 5, KeyID, KeyTake, 0, "", "", "") End Sub Sub SetKeYOpen(Map, X, Y, KeyX, KeyY, Message) Call SetAttribute(Map, X, Y, 6, KeyX, KeyY, 0, Message, "", "") End Sub Sub SetHeal(Map, X, Y) Call SetAttribute(Map, X, Y, 7, 0, 0, 0, "", "", "") End Sub Sub SetKill(Map, X, Y) Call SetAttribute(Map, X, Y, 8, 0, 0, 0, "", "", "") End Sub Sub SetShop(Map, X, Y, ShopID) Call SetAttribute(Map, X, Y, 9, ShopID, 0, 0, "", "", "") End Sub Sub SetClassBlock(Map, X, Y, Allow1, Allow2, Allow3) Call SetAttribute(Map, X, Y, 10, Allow, Allow2, Allow3, "", "", "") End Sub Sub SetArena(Map, X, Y, MapID, NewX, NewY) Call SetAttribute(Map, X, Y, 11, MapID, NewX, NewY, "", "", "") End Sub Sub SetSound(Map, X, Y, FileName) Call SetAttribute(Map, X, Y, 12, 0, 0, 0, FileName, "", "") End Sub Sub SetSpriteChange(Map, X, Y, SpriteID, ItemID, Cost) Call SetAttribute(Map, X, Y, 13, SpriteID, ItemID, Cost, "", "", "") End Sub Sub SetSign(Map, X, Y, Line1, Line2, Line3) Call SetAttribute(Map, X, Y, 14, 0, 0, 0, Line1, Line2, Line3) End Sub Sub SetDoor(Map, X, Y) Call SetAttribute(Map, X, Y, 15, 0, 0, 0, "", "", "") End Sub Sub SetNotice(Map, X, Y, Title, Text, FileName) Call SetAttribute(Map, X, Y, 16, 0, 0, 0, Title, Text, FileName) End Sub Sub SetScripted(Map, X, Y, Script) Call SetAttribute(Map, X, Y, 18, Script, 0, 0, "", "", "") End Sub Sub SetBank(Map, X, Y) Call SetAttribute(Map, X, Y, 23, 0, 0, 0, "", "", "") End Sub ' Tests scripts up to the location of Sub TestMain(Index). ' Leave this sub at the bottom to test the entire script file. Sub TestMain(Index) Call PlayerMsg(Index, "Scripts are working properly.", BRIGHTGREEN) End Sub Sub AddWepEXP(index, addxp) Dim Weapon Dim EXP Dim NexLevel Dim NexEXP Dim CurLevel if GetPlayerWeaponSlot(index) = 0 then Exit Sub End If Weapon = trim(GetItemName(GetPlayerInvItemNum(index, GetPlayerWeaponSlot(index)))) CurLevel = GetVar("accounts\" & GetPLayerLogIn(index) & "\" & GetPlayerName(index) & ".ini", "Weapons", "" & Weapon & "Lvl") EXP = GetVar("accounts\" & GetPLayerLogIn(index) & "\" & GetPlayerName(index) & ".ini", "Weapons", "" & Weapon & "XP") if CurLevel = "" then CurLevel = 1 end if if EXP = "" then EXP = 0 end if NexLevel = CurLevel + 1 EXP = EXP + addxp NexEXP = GetVar("experience.ini", "EXPERIENCE", "EXP" & CurLevel) Call PutVar("accounts\" & GetPLayerLogIn(index) & "\" & GetPlayerName(index) & ".ini", "Weapons", "" & Weapon & "XP", "" & EXP) if int(EXP) >= int(NexEXP) then Call WeaponLevelUp(index) End If End Sub Sub WeaponLevelUp(index) Dim Weapon Dim EXP Dim NexLevel Dim NexEXP Dim CurLevel Weapon = trim(GetItemName(GetPlayerInvItemNum(index, GetPlayerWeaponSlot(index)))) CurLevel = GetVar("accounts\" & GetPLayerLogIn(index) & "\" & GetPlayerName(index) & ".ini", "Weapons", "" & Weapon & "Lvl") if CurLevel = "" then CurLevel = 1 end if Call PutVar("accounts\" & GetPLayerLogIn(index) & "\" & GetPlayerName(index) & ".ini", "Weapons", "" & Weapon & "Lvl", (int(curlevel) + 1)) Call PlayerMsg(index, "Your skills with the '" & weapon & "' have risen to level " & (int(curlevel) + 1) & "!", 14) Call BattleMsg(index, "Your skills with the '" & weapon & "' have risen to level " & (int(curlevel) + 1) & "!", 14, 1) End Sub '******************************** Sub quest_Take_Item(index, number, value) '******************************** Dim slot Dim initial Dim final Dim taken slot=1 Do While Int(slot) < 25 If taken 1 Then If Getplayerinvitemnum(index,Int(slot)) = Int(number) Then If Int(getplayerinvitemvalue(index, Int(slot))) >= Int(value) Then initial = Int(getplayerinvitemvalue(index, Int(slot) ) ) final = Int(initial) - Int(value) If Int(final)
  11. @Zultar: > im not gunna say it bad and im not gunna say its perfect but it is good for a beginner. just keep making maps and you'll soon be better. 6/10 for a beginner thanks i usually use maps with full sizes of 40x40 just need to get use to actually using only about 20x20 for a section and the rest would be something else instead…thanks for the comments this will help me out @magicwafflemaker: > ok cool glad to know np i will place it under W.I.P. as soon as the alpha testing is done
  12. @magicwafflemaker: > i like it! is there a way for me to play your game? oh its still being worked on at the moment but i plan on trying to crank about 12 more maps or so…like some dungeons about 5 of them, and the rest are going to be either the floor maps, along with some town ones...i'll let u know when i get it up and running for a beta testing or so or something more like an alpha testing
  13. @[BS: > Elephant God Yorty link=topic=40957.msg418950#msg418950 date=1239087847] > Good "outline" for a map but as posted above, lacks much detail. (all of em, even new ones) yeah i am trying to find some good designs and stuff to actually make them special for players and stuff and also i usually work on it after work and don't go to sleep because i am trying to actually work on my plus 1000 items…i am looking for some mappers for the game when i get the alpha made and stuff
  14. Bump Okay here are some new maps that I have worked on…just so u know the maps are still in development because I still need to add the npcs and other maps stuff to make it look better so what you guys think about them so far:
  15. plus u must make sure that while u are doing that have the classes with locked=0 be the one that will be the ones that must be accounted for…mainly if u only have 12 classes that are with the locked=0 then u must place in the class section of ur data folder to 12 and the others will be locked=1...so just do that and it will work all great for you
  16. @Kirby: > EDIT=Oh nevermind, sorry simple screw up. Class 5 had a space between Class and 5\. and that screwed up class 6\. Thank you. np
  17. @Kirby: > I edited that but its still not showing. how many classes did u make actually that do not have locked=1…to show them the classes in the data file must only be the number of classes that are shown as the like me for instance: my classes are about 45 but i only put 12 in the number in the data folder because i only have 12 classes that have locked at 0...so do that and it should work
  18. more detail along with making the road more designed as well so that it will be great for players to travel and stuff also some more detail as well so just keep up the great work with the map
  19. nice map…can't wait to see the rest of them
  20. @damian666: > updated first post, now i can handle more sizes of the rpg maker graphics. > > also this setting is saved for easyer use ^^ > > damian666 thanks
  21. Sakis

    NPC health bar bug

    okay do u give them a health and then also it might be a bug in the code that you might have to check out
  22. Sakis

    School Project Pwned

    okay that is not just a tad bit but a whole bit because i even think that if u turned that into me as a teacher that i would actually just say that u got an a+ and that everyone else must bribe me to even get pass a d-…lol
  23. Sakis

    Player's health bar

    i believe that it is in the settings of the game…u might have to go into the game and look at the settings and change them thru that way
  24. Sakis

    Main Menu

    thats a great look because now the player can actually login at the same time of starting up the client and stuff too
×
×
  • Create New...